Trapping Rain Water
Problem overview from a real Apple interview:
Given an array of up to 20k non-negative integers representing an elevation map, compute the volume caught between peaks in O(n) time. Asked by Apple.
Check more interview questions and experiences about Apple
