Pick two vertical lines to form a container. Find the pair that holds the most water.
Given a bar chart of heights, figure out how much rainwater gets trapped in the valleys between bars.
Find all unique sets of three numbers in the array that add up to zero.
Remove duplicate values from a sorted list in-place and return how many unique values remain.