Vivek Loves Array game tle[dp]

link: https://ide.codingblocks.com/s/242404

can’t able to get optimized approach.

hello @dhruv.160410116084
pls refer this for O(nlog(n) ) solution
https://www.hackerrank.com/challenges/array-splitting/editorial

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.

how it is dp prolem , can we use bottom-up dp here??