We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Introduction to Nim Game
Introduction to Nim Game
Sort by
recency
|
76 Discussions
|
Please Login in order to post a comment
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
the question is very good, but the explainnation for sample second input seems not correct
https://en.wikipedia.org/wiki/Nim#Proof_of_the_winning_formula
Javascript one-liner: