5 problems using this pattern
Use two pointers moving towards each other or in the same direction to solve in O(n) time.
O(log n)
(1 problem)
O(n)
(4 problems)
O(1)
(5 problems)