Part of Why It Works: one DSA idea at a time, looked at through three questions. Why does it work, when does it apply, and how does it break? All three go through a subarray problem in one pass, so ...