← Amazon questions

Modify linked list by subtracting corresponding elements from ends

Filed under Amazon

Modify a singly linked list such that the first half of the list is updated: the i-th node becomes (i-th node value - (N-i)-th node value), where N is the list length.

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.