← Paytm questions
CodingReported in a candidate post, Jul 2025

Swap linked list nodes in groups of k

Filed under Paytm

Given the head of a singly linked list and an integer k, reverse the nodes k at a time and return the new head. If fewer than k nodes remain at the end, leave them as they are. Relink nodes instead of…

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.