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

Function create_iter

src/dynamic_programming/trapped_rainwater.rs:57–63  ·  view source on GitHub ↗

Creates an iterator for the given length, optionally reversing it. # Arguments `len` - The length of the iterator. `reverse` - A boolean that determines the order of iteration. - `false` for forward iteration. - `true` for reverse iteration. # Returns A boxed iterator that iterates over the range of indices.

(len: usize, reverse: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

calculate_max_valuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected