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

Reversing a linked list in groups of k

Reverse [1, 2, 3, 4, 5] in groups of k = 2, leaving a final group with fewer than k nodes unchanged. What is the result?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions