Question DSA-HEAP-0021
EasyWhat is the heap property of a min-heap?
- A.
Every parent is greater than its children
- B.
Every parent is less than or equal to its children
- C.
All leaves are equal
- D.
The array is fully sorted
Show answer and explanation
Answer: B
So the smallest element is always at the root.