3 ms·
1. Generate all permutations of the input. 2. Return the permutation that is in order. 3. Profit!
by mjcohen 13y ago
1. Generate all permutations of the input.
2. Return the permutation that is in order.
3. Profit!
- shawabawa3 13y ago1. Output all permutations of the input 2. There is no step 2. You've technically outputted the input list in order...somewhere