diff --git a/292. Nim Game.cpp b/292. Nim Game.cpp new file mode 100644 index 0000000..a5e2e47 --- /dev/null +++ b/292. Nim Game.cpp @@ -0,0 +1,7 @@ +class Solution { +public: + bool canWinNim(int n) { + if (n<=3 || n%4!=0) return true; + return false; + } +};