Tagged: cracking the coding interview


Determine if a binary tree is balanced

A balanced tree is defined to be a tree such that the heights of the two subtrees of any node never differ more than one. Input : The root of a binary tree Output...

Show Buttons
Hide Buttons