write a min heap and a max heap from a set of numbers code example
Example: example of a min heap
10 10
/ \ / \
20 100 15 30
/ / \ / \
30 40 50 100 40