โ† Amazon questions

Reverse every alternate k nodes

Filed under Amazon

Given a linked list and an integer k, reverse every alternate group of k nodes. If the number of nodes in the last group is less than k, leave it as is.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.