pls anyone optimise my code link is
https://ide.codingblocks.com/s/138380 it is giving wa
"are they same " doubt in divide conquer
Hi @Tanna
The only problem in your code is that you are calling for strings with garbage value(nothing assigned).
Maintain indices while calling the function or use strings to avoid static arrays.
Please have a look at my code,similar to your code only, demonstrating how easily you can use substr to solve this question.
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.