Backtracking is an effective technique for solving algorithmic problems during interviews.
Critical steps in backtracking solution :
How to determine if a problem can be solved using Backtracking? Every constraint satisfaction problem which has well-defined constraints can be solved by Backtracking. There are three types of problems which can be solved using backtracking :
| # | Title | Difficulty | Companies |
|---|---|---|---|
1. | The idea of Exhaustive Search | ||
2. | Example 1 : Permutations | MEDIUM | Microsoft Adobe Google |
3. | The Idea of Backtracking | ||
4. | Example 1 : N Queen Problem | HARD | Amazon Facebook Qualcomm |