Check whether a binary tree is a max-heap
Decide whether a binary tree is a valid max-heap: it must be complete (checked level by level) and every node must be at least as large as its children.
No answer yet. Write the first one; the best answer gets endorsed.
