Getting correct answer for test case 1 and getting wrong answers for the other test cases.
Here is the link :- https://ide.codingblocks.com/s/193012
Getting correct answer for test case 1 and getting wrong answers for the other test cases.
Here is the link :- https://ide.codingblocks.com/s/193012
@quizzerkumar
hello Nikhil,
you are trying greedy appraoch which will not work for this problem because both players are playing optimally
.
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.