Asked about Trees, graphs and the rest

What is the difference between recursion and backtracking?

An answer that works

Backtracking is recursion that undoes its choice before trying the next one. The undo step, usually a pop, is what makes it backtracking, and forgetting it is the most common bug in these problems.

Reading an answer is not being able to give one. The section that teaches this is Trees, graphs and the rest, 16 hours of Data structures & algorithms.

Learn this properly