โ† Amazon questions

Swap Kth node from start and Kth node from end

Filed under Amazon

Given a singly linked list and a number K, swap the Kth node from the start with the Kth node from the end, handling all edge cases including lists of lesser size.

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.