Ecommet

DSA sheet · Topic

Two Pointers interview problems

Two indexes moving through an array or string, usually from both ends, to replace a nested loop with a single pass.

  • 6 problems
  • Java + Python
  • Free, no sign-up
Progress options

02 Two Pointers Two indexes moving through an array or string, usually from both ends, to replace a nested loop with a single pass. 0 / 6
  1. 16 Valid Palindrome Easy Practice Valid Palindrome on LeetCode (opens in a new tab)
  2. 17 Remove Duplicates from Sorted Array Easy Practice Remove Duplicates from Sorted Array on LeetCode (opens in a new tab)
  3. 18 Two Sum II – Input Array Is Sorted Medium Practice Two Sum II – Input Array Is Sorted on LeetCode (opens in a new tab)
  4. 19 3Sum Medium Practice 3Sum on LeetCode (opens in a new tab)
  5. 20 Container With Most Water Medium Practice Container With Most Water on LeetCode (opens in a new tab)
  6. 21 Trapping Rain Water Hard Practice Trapping Rain Water on LeetCode (opens in a new tab)

All topics