DFS
Permutation & combination problems
Basic approaching method:
How many levels in the recursion tree? What does each level represent?
How many different states (branches) on each node in the tree?
Remove the added letter before returning back to previous level if not filling positions
Last updated
Was this helpful?