Pergunta de entrevista da empresa Microsoft

Write a function to determine if a binary tree is balanced or not.

Respostas da entrevista

Sigiloso

11 de mai. de 2012

This was the on-campus question.

Sigiloso

26 de out. de 2012

The idea is very simple: the difference of min depth and max depth should not exceed 1, since the difference of the min and the max depth is the maximum distance difference pos- sible in the tree