LeetCodechevron_rightCategorieschevron_rightgame theory
label

game theory

24 problems
Easy: 3Medium: 12Hard: 9

game theory is one of the most repeated interview dimensions. Start with edge-safe fundamentals, then move into pattern-level trade-offs.

Interview Signal

Frequently tests problem modeling, edge handling, and verbal clarity.

Common Pitfall

Template-only answers break under follow-up questioning.

Practice Strategy

Practice in 3-5 problem rounds and always review complexity alternatives.

Recommended Progression

#TitleDifficulty
292

Nim Game

In Nim Game, determine if you can win given a certain number of stones, assuming optimal play from both players.

Easy
375

Guess Number Higher or Lower II

Minimize the maximum cost of guessing a number in a dynamic guessing game using optimal strategies.

Medium
464

Can I Win

Determine if the first player can guarantee a win in a turn-based number selection game using state transition dynamic p…

Medium
486

Predict the Winner

Predict the Winner involves two players taking turns to maximize their score by picking from either end of an array, opt…

Medium
810

Chalkboard XOR Game

The Chalkboard XOR Game is a game theory problem involving array manipulation and bitwise XOR, where players alternate e…

Hard
843

Guess the Word

Master the Guess the Word problem by applying array manipulation, match-counting math, and strategic interactive guessin…

Hard
877

Stone Game

Stone Game is a dynamic programming problem where players alternate taking stones from piles to maximize their score.

Medium
913

Cat and Mouse

Determine the outcome of a two-player Cat and Mouse game on a graph using topological ordering and memoized dynamic prog…

Hard
1025

Divisor Game

Divisor Game is a game theory problem where players take turns subtracting divisors of a number n until one player loses…

Easy
1140

Stone Game II

Stone Game II is a dynamic programming problem where Alice and Bob alternate taking stones from piles to maximize their …

Medium
1406

Stone Game III

Stone Game III is a challenging dynamic programming problem based on game theory and state transition logic.

Hard
1510

Stone Game IV

Stone Game IV requires predicting the winner using state transition dynamic programming with careful consideration of pe…

Hard
1561

Maximum Number of Coins You Can Get

Solve the Maximum Number of Coins You Can Get using greedy pile selection and invariant validation to maximize your coin…

Medium
1563

Stone Game V

In Stone Game V, Alice divides stones into rows to maximize her score, using a dynamic programming approach to try all d…

Hard
1686

Stone Game VI

Determine the winner in Stone Game VI using a greedy strategy that accounts for each stone's dual value impact on Alice …

Medium
1690

Stone Game VII

Maximize score difference in a two-player turn-based stone removal game using state transition dynamic programming.

Medium
1728

Cat and Mouse II

Cat and Mouse II requires determining if the mouse can reach food before being caught using graph and topological orderi…

Hard
1872

Stone Game VIII

Stone Game VIII requires calculating maximum score difference using state transition dynamic programming on prefix sums …

Hard
1927

Sum Game

Determine if Alice can force a win in the Sum Game by strategically replacing '?' using a greedy and invariant approach.

Medium
2029

Stone Game IX

In the Stone Game IX problem, Alice and Bob take turns removing stones, and Alice wins if the sum of removed stones is d…

Medium
2038

Remove Colored Pieces if Both Neighbors are the Same Color

Alice and Bob play a game removing colored pieces; Alice wins if she makes the last valid move.

Medium
3222

Find the Winning Player in Coin Game

In this game between Alice and Bob, players must pick coins summing to 115. Alice starts, and the goal is to determine t…

Easy
3227

Vowels Game in a String

Solve the Vowels Game in a String using optimal moves and string analysis to predict the winner efficiently and accurate…

Medium
3283

Maximum Number of Moves to Kill All Pawns

Calculate the maximum number of moves to eliminate all pawns using BFS, bitmasking, and precise array position math effi…

Hard

Related Patterns

Game Theory LeetCode Problems: 24 Solutions