lanastasiia / median_by_heaps Goto Github PK
View Code? Open in Web Editor NEWImplementation of Heap, MaxHeap(Heap), MinHeap(Heap) and Median (using MinHeap & MaxHeap) classes, which allow to dynamically determine current median(s) of given array. Elements of array are delivered to Median one by one and added to the structure be add_element method.