Game Theory LeetCode Problems: All 25,
With Python Solutions
Every problem in this library that LeetCode tags Game Theory. 20 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.
- Easy
- 2
- Medium
- 13
- Hard
- 10
Game Theory problems by difficulty
Problems with a complete Python solution are listed first, then by ascending problem number.
Easy (2)
| No. | Problem | Topics |
|---|---|---|
| 0292 | Nim Game | |
| 1025 | Divisor Game |
Medium (13)
| No. | Problem | Topics |
|---|---|---|
| 0375 | Guess Number Higher or Lower II | |
| 0464 | Can I Win | |
| 0486 | Predict the Winner | |
| 0877 | Stone Game | |
| 1140 | Stone Game II | |
| 1561 | Maximum Number of Coins You Can Get | |
| 1686 | Stone Game VI | |
| 1690 | Stone Game VII | |
| 1927 | Sum Game | |
| 2029 | Stone Game IX | |
| 2038 | Remove Colored Pieces if Both Neighbors are the Same Color | |
| 0294 | Flip Game IIPremium | |
| 1908 | Game of NimPremium |
Hard (10)
| No. | Problem | Topics |
|---|---|---|
| 0810 | Chalkboard XOR Game | |
| 0913 | Cat and Mouse | |
| 1406 | Stone Game III | |
| 1510 | Stone Game IV | |
| 1563 | Stone Game V | |
| 1728 | Cat and Mouse II | |
| 1872 | Stone Game VIII | |
| 0843 | Guess the Word | |
| 2005 | Subtree Removal Game with Fibonacci TreePremium | |
| 2868 | The Wording GamePremium |
Eyes only
When the Game Theory problem arrives live.
In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.
Keep exploring
Other topics
- Array1,569
- String672
- Hash Table588
- Math485
- Dynamic Programming481
- Sorting392
- Greedy346
- Depth-First Search289
- Binary Search253
- Database249
- Tree225
- Breadth-First Search223
- Matrix216
- Two Pointers201
- Bit Manipulation194
- Binary Tree174
- Heap (Priority Queue)163
- Prefix Sum157
- Stack157
- Simulation144
- Graph138
- Counting126
- Design122
- Sliding Window116