Two Pointers

Pasted image 20221226171819.png

Ways to identify

  • Sorted array
  • Question askes to find a pair, triplet or subarray (if subarray, a better way would be to use Sliding Windows)

Time complexity

  • depends on the question

Notes