1. Write and implement a function get NumNodes that takes a binary tree as input and calculates the number of nodes in the tree.
2. Write and implement a function get NumLeaves that takes a binary tree as input and calculates the number of leaf nodes in the tree.
3. Write and implement a function get Height that takes a binary tree as input and calculates the height of the tree.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here