Two Pointers

  • We maintain two pointers and are only concerned with the elements they point at and not the elements in between.

Last updated