← Accenture questions

Reverse alternate k nodes in a LinkedList

Filed under Accenture

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

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 Accenture questions

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