Getting WA in first TC only, what could I be missing?
Are they same - getting WA in one TC
I thought you could see it in collaborative mode.
hi @pratyush34 you have to check if the whole strings are equal to each other or not
this step will just check whether they have the first letter equal or not
I put that line for the base case when l and r of both strings will become equal after continuous halving, then it will return whether the remaining one char is equal or not. Can you please send the edited code.
@pratyush34 add a case in the starting where you check if both strings are equal or not, if they are equal return true otherwise perform the rest of the steps
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.