what is the error in my method of finding grundy number?pls help me fix error ,i tried a lot to fix error but cld not fix the error.pls help.
Link to my code is—https://ide.codingblocks.com/s/109240
Doubt in--Game Theory - 3
.Player will randomly choose 1 pile whose height is A and break it into B new piles each with stones A/B such that B is a divisor of A and B != A ( 1< B < A).
i think sample test case is wrong … there is no option for player 2 to win for input 4 , 2. will inform setter about this.