Permutations II

Solution
Verifying access...

Time Complexity

O(N N!)

Space Complexity

O(N)