Javascript
Front End Data Structure and Algorithm (14): 01 The Art of Execution-Backtracking Algorithm (Part 2)
PrefaceFollowing the book, the previous chapter made a progressive introduction from recursion to backtracking. I believe that I have a preliminary understanding of backtracking. Next, I will mainly introduce more topics related to backtracking, and deepen its understanding in breadth.Alignment problem46-Full arrayGiven a sequence without repeated numbers, return all possible permutations. Example: Input: [1, 2, 3] Output: [ [1,2,3],[1,3,2],[2,1,3], [2,3,1],[3,1,2],[3,2,1] ] Source: LeetCode Lin