Backtracking: Easy to Hard Problems
Easy
- Permutations (Generates all permutations of a given list of numbers)
- Combination Sum (Finds all combinations that sum up to a target)
- Subsets (Generates all possible subsets of a given set)
- Letter Combinations of a Phone Number (Generates combinations of letters for a given phone number)
- Generate Parentheses (Generates all combinations of well-formed parentheses)
Medium
- N-Queens (Solves the N-Queens problem to place N queens on an N×N chessboard)
- Combination Sum II (Finds unique combinations that sum up to a target with duplicates allowed)
- Word Search (Finds if a word exists in a grid of characters)
- Sudoku Solver (Solves a Sudoku puzzle using backtracking)
- Palindromic Substrings (Counts all palindromic substrings in a given string)
Hard
- N-Queens II (Counts all distinct solutions for the N-Queens problem)
- Word Search II (Finds all words in a grid using a given dictionary)
- Expression Add Operators (Finds all possible ways to add operators to make the expression equal to a target value)
- Palindrome Partitioning II (Finds the minimum cut needed to partition a string into palindromes)
- Combination Sum III (Finds all possible combinations of k numbers that add up to a target with unique digits)