After
count += right - left;
the code does left++
My question is since we have already counted all numbers between left to right, why are we doing left++ now?
would’nt it re-count the numbers appearing between right-left that we have already counted?
Course: Grokking the Coding Interview: Patterns for Coding Questions - Learn Interactively
Lesson: Triplets with Smaller Sum (medium) - Grokking the Coding Interview: Patterns for Coding Questions