We currently have (at least) two different implementations of a heap:
k_smallest_general in k_smallest.rs
- in
kmerge_impl.rs
We should extract the heap stuff into an own module and use it in both places. (sift_down in k_smallest.rs looks a bit cleaner to me.)
We currently have (at least) two different implementations of a heap:
k_smallest_generalink_smallest.rskmerge_impl.rsWe should extract the heap stuff into an own module and use it in both places. (
sift_downink_smallest.rslooks a bit cleaner to me.)