Divide and Conquer

This is the soln to the question " Pair Of Roses" which pases all the testcase as compared to the o/p fike but is not getting accepted. Please have alook.

https://ide.geeksforgeeks.org/PRey4ICS6K

@shahpankti931 check for this input
1
10
191 384 120 485 80 517 84 553 125 146
575

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.