← Amazon questions

Remove Zero-Sum Consecutive Sublists from Linked List

Filed under Amazon

Given the head of a linked list, repeatedly delete consecutive sequences of nodes that sum to 0 until no such sequences remain. Return the head of the final modified linked list.

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.