Skip to content
RED SAG Skills
hard20 pts · first answer countsstacks-and-queues

Reordering a list from both ends

Reorder 1→2→3→4→5 into 1→5→2→4→3 in place, in O(n) time and O(1) extra space. What is the standard approach?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions