Problem in "Are They Same"


I am getting the wrong answer in one test case.
I have applied simple brute force but then also no TLE.
As it is under Divide And Conquer so can you explain approach according to that?

Hi

your approach is bit more hard coded, take up a larger string and dry run your approach. ( you have to break/divide the string till one element is left)

D&C approach is complete approach

make it first recursive you have to divide the string and keep on checking for equivalent.

Give it a try if still you have doubt do post.

Hit like if you get it!
Cheers!