how one gets the clue of xoring in this problem? I mean how to approach to the solution of this problem?
Refer these two amazing videos
game theory
sprague-grundy theorem
Kudos to JAlgs for making these awesome videos
Thanks a lot…
It was super helpfull