Python puzzle and game problems
Board games, logic puzzles and the search for the best move, as Python problems with tests.
Beginner
Intermediate
Advanced
- 352. Minesweeper ClicksOne lucky click and half the field opens up120 XP25 min
- 368. Measure With Two JugsNo measuring cup, two odd-sized jugs, and a recipe that needs an exact amount130 XP25 min
- 416. Sliding Tile PuzzleEight tiles, one gap: how few slides put them back in order?150 XP30 min
- 420. Find the Words in the GridA whole dictionary against one letter grid: which words are hiding?160 XP35 min
- 432. Nonogram Row LogicWhich squares of this picture puzzle row are certain, whatever the solution?175 XP40 min
Expert
- 469. Parking JamSlide the cars aside and steer the red one out of the jam240 XP50 min
- 476. Perfect Tic-Tac-ToeNobody makes mistakes: what is the best move, and how will the game end?250 XP50 min
- 495. Take-Away With Many PilesSeveral piles, only a few legal takes: how many first moves still win?270 XP55 min
Other topics
- Python Basics
- Strings
- Lists
- Dictionaries and sets
- Loops
- Functions
- Math
- Sorting and searching
- Two pointers
- Sliding window
- Stacks and queues
- Recursion and backtracking
- Dynamic programming
- Greedy
- Graphs
- Trees
- Bit manipulation
- Classes
- Iterators and generators
- Parsing
- Simulation
- Python idioms
- Regular expressions
- Codes and ciphers
- Working with data
- Grids and matrices
- Geometry
- Heaps
- Data structures
Or see every challenge, with study plans, today's challenge and duels.