Why is this called backtracking?
问题 I have read in Wikipedia and have also Googled it, but I cannot figure out what "Backtracking Algorithm" means. I saw this solution from "Cracking the Code Interviews" and wonder why is this a backtracking algorithm? 回答1: "Backtracking" is a term that occurs in enumerating algorithms. You built a "solution" (that is a structure where every variable is assigned a value). It is however possible that during construction, you realize that the solution is not successful (does not satisfy certain