Optimal gaming strategy-1

0th test cases failing rest of the cases are cleared
code link:- https://www.codepile.net/pile/O4qQXE4p

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 :slightly_smiling_face:


in this code if youa are able to understand we are minimising the nimits outcome and we are maximising the piyush outcome .

thanks for the help got it!!!

1 Like