Skip to content
SparkTime, home

Tagged #recursion

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.