Hoarding programming problems for you!

Looking for good programming challenges?

Use the search below to find our solutions for selected questions!

Permutations challenge

Sharing is caring!

Problem statement
Given a list, nums, of distinct numbers, return all possible permutations.

Sample input

Sample output

We are using a technique called permutations by swapping.

Full code