How to apply divide and conquer here…
It can be solved easily by if…else techniques!!
Application problem
try using if else technique, if done good , solve it using if else, if you are unable to solve using if else then message again.
Ohk !! was unable to do so,… go ahead with the divide and conquer technique
use recursion and continue to divide both the strings in two parts, and keep checking if by dividing a and b into ---- a1,a2,b1,b2 check
1-: a1==b1 and a2==b2
or
2-: a1==b2 and a2==b1
if these conditions are true then return true else false;
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.