What is wrong in this code? Only test case 1 is not running.
Check the code here : https://ide.codingblocks.com/s/334224
What is wrong in this code? Only test case 1 is not running.
Check the code here : https://ide.codingblocks.com/s/334224
hello @yobasu2015 you have not implemented the code in the right way .
it is mentioned in the code that both the players are playing optimally that why piyush and nimit both play optimally (i.e they will try to win) .
and as the piyush starts first thats why you have to minimise the nimits outcome .
here for your reference i am attaching the code :
in this code if youa are able to understand we are minimising the nimits outcome and we are maximising the piyush outcome .
please reply here if you have any doubt otherwise i request you to please mark this doubt as resolved .
Happy Learning !!
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.