commit 388237bfd46c38da32d109a9222cd3a2a6e7a080
parent 4165f65129e254d8428d7cfdfe1c227c40f26ee8
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date: Fri, 2 Jun 2023 15:22:03 +0200
Random Problem
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Problems/0292.cpp b/Problems/0292.cpp
@@ -0,0 +1,4 @@
+class Solution {
+public:
+ bool canWinNim(int n) { return n % 4; }
+};
diff --git a/README.md b/README.md
@@ -219,6 +219,7 @@ for solving problems.
| 0283 | Easy | [Move Zeroes](Problems/0283.cpp) |
| 0287 | Medium | [Find the Duplicate Number](Problems/0287.cpp) |
| 0290 | Easy | [Word Pattern](Problems/0290.cpp) |
+| 0292 | Easy | [Nim Game](Problems/0292.cpp) |
| 0295 | Hard | [Find Median from Data Stream](Problems/0295.cpp) |
| 0297 | Hard | [Serialize and Deserialize Binary Tree](Problems/0297.cpp) |
| 0299 | Medium | [Bulls and Cows](Problems/0299.cpp) |