LeetCode: https://leetcode.com/problems/permutations/
Given an array nums of distinct integers, return all possible permutations.
pick
1
0
2
1
3
2
used=[true, false, false]
cur=[1]
resCount=0
Step 1 / 6
Step 1:
Pick nums[0]=1 (mark used).
Pointers: pick=0
Focus: select @ [0]
resCount=0