Manhattan Associates Interview Question

How would you count the number of nodes in a binary tree? implement your design

Interview Answer

Anonymous

Sep 25, 2015

You may use either preorder, postorder or inorder traversal to count the number of nodes in a binary tree.