Update each linked-list node with the sum of itself and its (n-k)th node
Filed under Josh Technology
The question
Given a linked list, replace each node value with its own data plus the data of the (n-k)th node.
No write-up yet. Related questions below have one.
Related Josh Technology questions
Collected from public candidate posts and coding forums. Updated Nov 2026.