0 0 votes Consider the binary tree where the number of nodes in each left sub-tree is within a factor of 2 of the number of nodes in the corresponding right sub-tree. Also, a node is allowed to have only one child if that child has no children. What will be the minimum number of nodes in such a tree with a height of 5? (root is at a height of 1). Algorithms algorithms binary-tree numerical-answers + – Arpit_Dhameliya 850 views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Shubham Sharma 2 commented Oct 4, 2024 reply Follow flag https://gateoverflow.in/311536/made-easy-test-series-binary-tree?show=311536 0 0 replyShare Arpit_Dhameliya commented Oct 5, 2024 reply Follow flag using this formula ans is 25 but this question ans is 12 . and please help me in this question and if you find ans then you send me pic of binary tree. 0 0 replyShare Shaik Masthan commented Oct 5, 2024 reply Follow flag 0 0 replyShare Arpit_Dhameliya commented Oct 5, 2024 reply Follow flag but bro in this ans condition is not satisfied beacuse in the question it give the left sub-tree is within a factor of 2 of the number of nodes in the corresponding right sub-tree in this ans the right sub tree contain 7 node when left subtree contain 4 so 4 is not factor of this so what i do? 0 0 replyShare Shaik Masthan commented Oct 6, 2024 reply Follow flag With in factor of 2. But not exactly factor of 2. At height 1, no.of nodes at left is 0 but right is 1 - this is due to one more condition given in the question. 0 0 replyShare Teja25 commented Dec 13, 2024 reply Follow flag Sir, why can't a right-skewed tree be answer? Because in it, there is no left subtree for any node, that is within the factor of 2 of the number of nodes in the corresponding right sub-tree? 0 0 replyShare Lokesh456 commented Dec 26, 2024 reply Follow flag a node can have only one child if that child has no children:- acc to this statement if any node having a leaf as a children then that node must have only one child.now here root is having 2 child and one of them is leaf, so isn't it invalid. for h=3@Shaik Masthan please confirm it 0 0 replyShare Please log in or register to add a comment.
0 0 votes 13 Harshit Taneja answered Apr 12, 2025 Harshit Taneja comment Share Follow 0 reply Please log in or register to add a comment.