can u tell me some inputs so that i can make changes accordingly and have a look into my code and suggest changes.
Game of stones question
Your logic of inserting grundy numbers into set S is incorrect. You can’t insert just mex of a subproblem. That will always return 0 for large values of N. You need to take minima of all mex you get.
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.