Skip to content
SparkTime, home
Tag · 1 piece

#backtracking

Tagged #backtracking

GuideTechnology

24 min read

Recursion and Backtracking

Learn to think recursively: base cases, the call stack and recursion trees. Then use backtracking (choose, explore, undo) to generate subsets, permutations and combinations, avoid duplicates, prune the search and solve N-Queens.