# Leetcode 46 - Permutations

Note:

• This is a backtracking problem.
• We don’t need startIndex because each path must contain all elements.
• We do need a used array to keep track if we’ve used the element.

Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.

Example