← Paytm questions

Reverse a linked list in groups of size k

Filed under Paytm · Also reported at Microsoft IDC, Nagarro, Optum (UnitedHealth Group)

Given a singly linked list and an integer k, reverse the nodes of the list in groups of k at a time. If the number of nodes is not a multiple of k, leave the remaining nodes 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 Paytm questions

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