2 votes 2 votes The height of a binary tree having $`\text{i’}$ nodes at level $`\text{i’}$ considering root to be at level $1$ is __________, where $`n\text{’}$ is the total no. of nodes in the tree. $O(\log n)$ $(O(n)$ $O(\sqrt{n})$ $O(n^{2})$ DS data-structures binary-tree + – Shubham Pandey 2 asked Oct 26, 2016 • recategorized Jul 6, 2022 by Lakshman Bhaiya Shubham Pandey 2 604 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 10 votes 10 votes say n nodes are in binary tree. 1+2+3+4+...+i=n (i*(i+1)) / 2 = n i2=n height is=O($\sqrt{n}$ ) papesh answered Oct 26, 2016 • selected Oct 27, 2016 by Shubham Pandey 2 papesh comment Share Follow See all 0 reply Please log in or register to add a comment.