Two Pointers: 3Sum and Two Sum IIOptimized Java solutions and theory for classic Two-Pointer problems: 3Sum and Two Sum II.