⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’

Excalidraw Data

Text Elements

-9 -5 -2 -1 0 1 1 3 4 5 8

Target = 3

sum too low increase left

Now increase the left pointer as long as the next term is duplicate

Similarly decrease the right pointer as long as the prev term is duplicate

increase left pointer SUM INCREASES decrease right pointer SUM DECREASES