Back to Questions

Remove Zero Sum Consecutive Nodes from Linked List

82.1K viewsAsked at Amazon
Medium

Question Explain

Given the head of a linked list, repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. Use a Hash Map to track cumulative sums.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Remove Zero Sum Consecutive Nodes from Linked List - Interview Question