1.

What is the upper bound for maximum leaves in K-ary tree with height h?(a) K*h(b) K^h(c) K+h(d) K-hQuery is from K-ary Tree topic in portion Trees of Data Structures & Algorithms II have been asked this question during an interview for a job.

Answer»

Correct answer is (b) K^H

The BEST EXPLANATION: In the K-ary tree having height h, the upper bound for having maximum NUMBER of leaves is k^h.



Discussion

No Comment Found

Related InterviewSolutions