0% completed
Introduction to Backtracking Pattern
Backtracking
Backtracking is an algorithmic technique that uses brute-force approach to solve a problem.
Brute-force approach states that for any problem, we should try out all possible solutions and pick up those solutions that satisfy the problem constraints.
In backtracking, we build a solution incrementally and follow the approach that if the current solution can’t lead to a valid solution, abandon it and backtrack (or go back) to try another solution. Because of this, recursion becomes a suitable technique for solving backtracking problems.
.....
.....
.....
Anonymous
· 2 years ago
It would be great if you could add a general template for each coding pattern that we can re-use in all the problems of that type. Also, it would be better
Anonymous
· 2 years ago
Would be nice a video explaining the backtrack pattern and maybe an easy exercise too
Reading Progress
0%