

InterviewSolution
Saved Bookmarks
1. |
The time complexity of calculating the sum of all leaf nodes in an n-order binary tree is __________(a) O(n^2)(b) O(n+1)(c) O(1)(d) O(n)The question was asked in an interview for internship.The query is from Tree Traversal topic in chapter Trees of Discrete Mathematics |
Answer» | |