not passing one test case.
String sort problem question
hey @yashikakhurana00, instead of using functionally of check function,you can use find function present in string.h
Find function searches the string for the first occurrence of the sequence specified by its arguments.
when we specify that sequence as string then 0 is returned when strings have something common.
Example- str1=“BAT”, str2=“BATMAN”
now str2.find(str1) will return 0 as it BAT is common
Here the updated code https://ide.codingblocks.com/s/109667
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.