sir, in this question of string sort only 1 testcase is passed for my solution and for 2nd test case it is showing wrong ans. Plzz see my solution. link: https://ide.codingblocks.com/s/93876
String sort challenge
Hello @khushi91200,
Your logic is correct.
There is just one mistake. Use the condition a.find(b)==0 or b.find(a)==0 instead of a[0]==b[0].
a.find(b) returns the index of first occurance of b in a. So, if string b is present at the start of string a then the condition will be true.