validate a binary tree
Anonymous
There is a difference between Binary tree and Binary search tree, so the interviewer question was for binary tree, so no need to check for the data, just check if each node in the tree has just left and right child.
Check out your Company Bowl for anonymous work chats.