Hello , IN problem Equivalent string , I am using Divide and Conquer approach to solve.
I am check all four cases , left_left , right_right , left_right , right_left
by the code is giving time limit exeeded . Since we are not making more than log n divisions , why it is giving TLE and how to optimize it . Can anyone tell me .
Pseudo code