Search
⌘K

Leetcode 46. Permutations

Generate all possible orderings of a list of distinct integers — i.e., return every permutation of the array. The challenge is to enumerate all n! arrangements efficiently (n ≤ 6), typically via backtracking or iterative permutation generation.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid January, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.