Mathematics, Competitive Programming, Philosophy, Discrete Mathematics.
noticed* that there is a corner case which results in more than one segment birth for a stroke. This kind of stroke (shown in the figure above) results in 3 segment births and 1 segment death. So such a stroke causes our analysis to get “hit by 2”, since we have 3 segment births rather than the 1