+ 1

String comparison

I have a string s = 'abc xyz', then a string s1 is said to be valid if it is made up-of same alphabets as in s and all alphabets of s must be used and length of s1 can be greater or equal to s because repetition of those alphabets is allowed. example s = 'rail safety' then 'fairy tales' and 'yes its a rail safe' both are valid. Can u write a C program for this?

13th Jan 2019, 5:11 PM
Kush Choudhary
Kush Choudhary - avatar
1 Resposta
+ 3
could you please show your attempt..
13th Jan 2019, 5:56 PM
Madhav
Madhav - avatar