MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / trapped_rainwater

Function trapped_rainwater

src/dynamic_programming/trapped_rainwater.rs:12–21  ·  view source on GitHub ↗

Module to calculate trapped rainwater in an elevation map. Computes the total volume of trapped rainwater in a given elevation map. # Arguments `elevation_map` - A slice containing the heights of the terrain elevations. # Returns The total volume of trapped rainwater.

(elevation_map: &[u32])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

calculate_max_valuesFunction · 0.85
minMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected