please make changes in the code itself , not able to think base conditions , https://ide.codingblocks.com/s/224943
Can't Understand how to proceed, Vivek Loves Array
hello @Codemaniac_Aditya
please refer this ->https://www.hackerrank.com/challenges/array-splitting/editorial
No for every testcase the answer is coming out to be 0
here u missed a case when ur l will be 0.
in that return only arr[r];
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.