Heaps & Priority Queues

Answer & solution
Official answer: 8.0 : 8.0
Our answer: 8
A node at depth d has d strictly smaller ancestors in a heap of distinct keys. Key9 has only eight smaller values, so d≤8, also below the full tree’s maximum depth 9. Place1..9 along a root-to-depth 8 chain and assign remaining keys in a parent-before-child order; all heap inequalities can be satisfied. Thus depth 8 is attainable.
There are 1023=210−1 nodes, so levels 0 through 9 exist. Depth 9 would require nine ancestors smaller than 9, but only eight values qualify. A heap is not a BST: siblings need not be numerically ordered, so the remaining values can be assigned without imposing a search-tree constraint on the chosen chain.