← Questions

Generate all permutations

0
AppleCodingLast asked Mar 2026

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding