Generate All Permutations
Asked at SoFi · Coding Questions · Difficulty: Medium · Last asked Jan 14, 2026
You are given a list `nums` of distinct integers. Return every possible ordering (permutation) of its elements, each as a list, with no ordering missing and none repeated.
Loading the problem…