DIY: Permutations
Solve the interview question "Permutations" in this lesson.
We'll cover the following
Problem statement
Given an array nums
of unique integers, you will return all the possible permutations. You can return the answer in any order.
Constraint:
1 <= nums.length <= 6
-10 <= nums[i] <= 10
- All the integers of
nums
are unique.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.