Neetcode Spaced Repetition System

46. Permutations

Medium

Backtracking

Optimal Complexity

Time

O(n * n!)

Space

O(n)

Start First Attempt