Generate all permutations
Return every ordering of a list of distinct numbers using backtracking. Follow-ups may include input with duplicates (skip repeats) and the time cost. In the reported round a second short task on image retrieval followed.
No answer yet. Write the first one; the best answer gets endorsed.
