FloodDepth is a Codility exercise where an array represents the rock height of a landscape which is flooded with water. The aim is to find the depth of the water at the deepest point along the landscape.
In this video, I explain my solution and then go on to implement it. The solution scores 100% on Codility.