What property distinguishes a max-heap from a min-heap?
-
A
Max-heap stores sorted data; min-heap does not
-
B
Max-heap has the largest element at the root; min-heap has the smallest
-
C
Max-heap uses more memory than min-heap
-
D
Max-heap supports O(1) search; min-heap does not