AlgoFrames

Which array is a min-heap?

Warm-up · Multiple choice · about 3 min

Each option is an array. Index 0 is the root, indices 1 and 2 are its children, and so on. Pick the array that is a valid min-heap.

Learn the idea first: Binary heaps: array layout, sift up, sift down, a visual lesson.

More Binary heaps: array layout, sift up, sift down problems