Backtracking • Intermediate • 25 min
Word Search
How to explore paths in a grid, mark the current choice, and undo that choice on the way back.
Practice problems with walkthroughs, hints, and solutions.
Filter by type or level
Backtracking • Intermediate • 25 min
How to explore paths in a grid, mark the current choice, and undo that choice on the way back.
Backtracking • Intermediate • 20 min
How to use counter-based backtracking to prune invalid prefixes before they turn into wasted work.
Backtracking • Intermediate • 20 min
How to use controlled [backtracking](/glossary/backtracking) to build unique combinations in canonical order.