← Amazon questions

Swap Linked List Values by Kth Intervals

Filed under Amazon

Given the head of a linked list and an integer k, swap the value of node 1 with node k, then node k+1 with node 2k, and so on. Also consider the follow-up of physically moving the 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 Amazon questions

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