DSA/Leetcode Flashcards
(2 cards)
1
Q
Backtracking
A
Trying all possible options, one step at a time, and undoing (backtracking) when a path doesn’t work, to explore other choices.
Backtracking = DFS + Undo
2
Q
A
Backtracking
Trying all possible options, one step at a time, and undoing (backtracking) when a path doesn’t work, to explore other choices.
Backtracking = DFS + Undo