~/lc-grind
#46 - Permutations
Dec 9, 2025Master the classic backtracking challenge of generating all possible orderings of a distinct integer array.
#77 - Combinations
Dec 8, 2025Master the classic combinatorial generation problem by exploring efficient backtracking techniques to find all unique combinations of `k` numbers from `1` to `n`.
#22 - Generate Parentheses
Dec 5, 2025Generate all valid combinations of `n` pairs of parentheses using backtracking to ensure proper balance and order.
#17 - Letter Combinations of a Phone Number
Dec 4, 2025Generate all possible letter combinations from a phone number's digits using backtracking, just like old-school texting.
#211 - Design Add and Search Words Data Structure
Dec 3, 2025Design a Trie-based dictionary that supports adding words and searching with wildcard '.' characters for flexible pattern matching.
#127 - Word Ladder
Dec 2, 2025Find the shortest path to morph one word into another by changing one letter at a time, using a given word list as stepping stones.
#433 - Minimum Genetic Mutation
Dec 1, 2025Navigate the shortest mutation path from a start gene to an end gene using a valid gene bank, employing BFS to find the minimum number of single-character changes.
#909 - Snakes and Ladders
Nov 28, 2025Navigate a Boustrophedon-style game board using dice rolls, snakes, and ladders to find the minimum moves required to reach the end with this classic BFS problem.
#210 - Course Schedule II
Nov 27, 2025Master the topological sort algorithm to find a valid course sequence—or detect an impossible schedule—in this classic graph traversal problem.
#399 - Evaluate Division
Nov 26, 2025Solve division queries between variables by modeling given equations as a weighted graph and traversing to find the product of ratios between any two nodes.