this is code for this question using recursion…
only one test case is getting passed…why
Mixtures///////////////////////////
Hey @dakshi
You need to solve for subarrays in recursion as subproblems
You’re only considering one end point at a time
Your logic is incorrect
I see you made a submission with AC a few weeks back
Please refer to that code and see what you have done incorrectly
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.