Backtracking
11 animated solutionsExplore every branch, prune the impossible ones, undo and continue. The template behind subsets, permutations, combinations and constraint puzzles. Every problem below plays as an animated walkthrough with solutions in Python, Java and C++. Companies that ask these most: Snap, HPE, Juniper Networks.