solved the question for one coin but not able to solve for any number of coins
Struck on one part of logic
Hi @Akshay0404 , u can refer the code https://ide.codingblocks.com/s/192582 In case of any doubt in this code feel free to ask
For explantion you can refer to game theory webinar in the discussion of QCJ3 question of SPOJ
actually in the webinar the question was to shift one coin at a time but in this question we can move muttiple coins from different piles in single move
this does not translate to a game of nim directly as we are removing from mutltiple piles at the same time
yeah!! u r right i think this problem is taking solution based on one coin move not on multiple coin . give me some time i will clarify
there is a error in the statement , i have reported it
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.