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

Method heapify_down

src/data_structures/heap.rs:126–149  ·  view source on GitHub ↗

Moves an element downwards to restore the heap property. # Parameters - `idx`: The index of the element to heapify down.

(&mut self, mut idx: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

build_heapMethod · 0.80
popMethod · 0.80

Calls 4

children_presentMethod · 0.80
right_child_idxMethod · 0.80
left_child_idxMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected