https://ide.codingblocks.com/s/294739 https://hack.codingblocks.com/app/contests/1617/1254/problem OPTIMAL GAME STRATEGY two test cases are not passing showing wrong answer WHAT IS WRONG WITH CODE
OPTIMAL GAME STRATEGY
@sheikhhaji18,
You just can’t simply pick up the best every time for yourself, your opponent is also playing optimally, in his turn, you wouldn’t get the maximum profit, he would. You also have to consider who’s turn it is.
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.