โ† FactSet questions

Remove zero sum consecutive nodes from linked list

Filed under FactSet

Given the head of a linked list, repeatedly delete consecutive sequences of nodes that sum up to 0 until no such sequences remain, then return the head of the final 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 FactSet questions

Collected from public candidate posts and coding forums. Updated Nov 2026.