Make a binary heap

A heap is a tree structure. Numbers lower down the tree are smaller than the numbers above them, following directly along the branches. This page makes binary heaps, where each node has two branches. [Sibling numbers are not sorted in any way.] You can enter a list of numbers, and they will be sorted into a heap.

Enter the number of items for your list here.