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

Method right_child_idx

src/data_structures/heap.rs:195–197  ·  view source on GitHub ↗

Returns the index of the right child of the element at `idx`. # Parameters - `idx`: The index of the element. # Returns The index of the right child.

(&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 1

left_child_idxMethod · 0.80

Tested by

no test coverage detected