1 test case is failing

code: https://ide.codingblocks.com/s/470049

problem: https://hack.codingblocks.com/app/contests/2142/985/problem

1st tc failing

hello @raghav007

the definition is recursive , ie u can apply the same definition on the subproblem(that u obtain after splitting) as well

but why is recursion required because in the question they have asked to consider the strings given and not substrings of their substrings

ss

read second point

but it is not saying to split a1, a2 ,b1,b2 into two halves as well

it saying a1 is equivalent to b1 .
so equivalent means u need to repeat the same definition again on a1 and b1 .
similary on other substring(b1,b2,a1,a2)

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.