← Amazon questions

Subtract first node value from last node in linked list

Filed under Amazon

Given a singly linked list, modify its node values such that the value of the first node is updated by subtracting it from the last node, the second node is updated by subtracting it from the…

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.