...

/

Challenge: Is Tree a Heap?

Challenge: Is Tree a Heap?

Let’s check if a tree is also min heap or not.

Problem

Given a binary tree, find if it represents a min heap.

...