123 Container With Most Water Medium Greedy Shrink

Pick two vertical lines to form a container. Find the pair that holds the most water.

O(n) time · O(1) space
124 Trapping Rain Water Hard Two Pointer Max

Given a bar chart of heights, figure out how much rainwater gets trapped in the valleys between bars.

O(n) time · O(1) space
125 3Sum Medium Sort + Two Pointer

Find all unique sets of three numbers in the array that add up to zero.

O(n^2) time · O(1) space (excluding output)
126 Remove Duplicates from Sorted Array Easy Slow-Fast Write

Remove duplicate values from a sorted list in-place and return how many unique values remain.

O(n) time · O(1) space