Optimal Game Strategy DP

May I could get the code for this Optimal Game Strategy DP Problem?

hi @ayushmittal628_58414ee9c56e4875
Refer this -->

For this, how can I compute the difference of margin between 2 players?

The above code will return the total score of one player… so u can subtract it from sub of all numbers in array to get the desired difference…

@ayushmittal628_58414ee9c56e4875
is there anything else? or shall I mark the doubt as resolved??

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.