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

Method children_present

src/data_structures/heap.rs:173–175  ·  view source on GitHub ↗

Checks if the element at `idx` has children. # Parameters - `idx`: The index of the element. # Returns `true` if the element has children, `false` otherwise.

(&self, idx: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

heapify_downMethod · 0.80

Calls 2

left_child_idxMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected