Swap kth node from beginning and end in linked list
Filed under Rockstand
The question
Swap the kth node from the beginning of a linked list with the kth node from the end.
No write-up yet. Related questions below have one.
Related Rockstand questions
Collected from public candidate posts and coding forums. Updated Nov 2026.