Measure Water Trapped Between Elevations
Company: Hive.Ai
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: hard
Interview Round: Technical Screen
Overview: Compute how much rainwater is trapped between nonnegative elevation bars in linear time. Explain both prefix-boundary arrays and the constant-space two-pointer proof, including empty inputs, equal boundaries, and large arrays.