Binary Trees and Traversals - Complexity Analysis - Advanced Concepts

Download Q&A
Q. If a binary tree has 'n' nodes, what is the maximum height of the tree?
  • A. n
  • B. log n
  • C. n/2
  • D. n-1
Q. What is the time complexity of a level order traversal of a binary tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of merging two binary trees?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely