LeetCode 735 Looks Easy Until the First Collision Isn’t the Last
One tiny chain reaction, a tempting wrong solution, and the O(n) reasoning worth taking into your next interview. Before you scroll to the Python, try this tiny input in your head. [4, 7, 3, -9] Positive numbers move right, negative numbers move left, and…