Permutations

#46
Medium
Backtracking
O(n!)
O(n)
Amazon
Microsoft
Google
Facebook
View on LeetCode

Problem Description

Given an array nums of distinct integers, return all the possible permutations.