In the sample input, Piyush picks 4 Rs coin and Nimit has 2 choices. He can pick either 1 or 3. Which one will Nimit chose?
Is it like both players will choose the coin with more value?
Optimal game strategy- I
@tanyaa.sood
hello Tanya,
no play will that coin which will maximize his total score (score at the end of game).
it can happen that at some intermediate step player pick minimum but overall got a maximum score. so we cannot say that player will pick maximum or minimum value.
If nimit choose Rs 1 coin then Piyush should choose Rs 3 coin as it will maximise the output. So output should be 7.
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.