Question d’entretien chez Microsoft

write a function that Given a pointer to root of a tree will return true if its binary tree else will return false.

Réponse à la question d'entretien

Utilisateur anonyme

10 juill. 2019

If the question is bst, use lower range and upper range. If binary tree , check for each node to have children less than or equal to 2.