Back to QuestionsPractice with This Question
Remove Zero Sum Consecutive Nodes from Linked List
82.1K views•Asked 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.