Test 0 fails
and all other is success even I unlocked the 5 test cases and manually checked them it returned correct results unable to figure out.
Unable to figure out which test case does this code fails?
hello @atul51
u have misunderstood the problem.
u cannot pick few characters of the string and discard the rest of the characters.
here in the question u can either pick the complete string or discard it compeltely.
for example->
aaaa b
here answer will be 1 (string b). but urs solution will print 2. because it will pick a from the first string and b from the second.
whcih is wrong.
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.