Optimal Game Strategy - 1

Are Inputs arranged in ascending order?

https://online.codingblocks.com/app/player/161395/content/158268/4939/code-challenge

hello @yashratnani6
no order of input is not fixed, they can be in any order

https://ide.codingblocks.com/s/411673 Pls See my Code I’m Getting Zero Answer Always

it was taking global arr, which has all indexes 0.
Check now=>, also just an advise design template which can be generalized. And use those local variables which aren’t in your template. It will be beneficial.

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.