3 3 votes The number of BST possible with 6 node numbered 1,2,3,4,5 and 6 with exactly one leaf node Data Structures binary-tree + – amit166 1.1k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Shubhgupta commented Jan 5, 2019 reply Follow flag should be 32? 0 0 replyShare Shaik Masthan commented Jan 5, 2019 reply Follow flag one leaf node ==> it should be chain of nodes ! let denote the nodes with A,B,..... A ------------- B ------------- C -------------- D ---------- E ------------- F those links are either left or right ==> 2${^\text{no.of links}} = 2^5$ = 32 structures possible ! it is BST, So in each structure, you can place a unique value for the Node ==> 32*1 = 32 3 3 replyShare Please log in or register to add a comment.
1 1 vote I think its 2^5 =32 as it's given, it has only 1 child for the given BST Hence it can have a structure of form 1-2-3-4-5-6 ; 6-5-4-3-2-1; 6-5-1-4-3-2 etc. similarly, we have 2^5=32 possibilities PSDesai09 answered Apr 23, 2020 PSDesai09 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes no of BST possible with 6 node is = 192 gorya506 answered Aug 14, 2019 gorya506 comment Share Follow See all 2 Comments 2 2 Comments reply Diksha kiran commented Apr 11, 2020 reply Follow flag Please explain 0 0 replyShare gorya506 commented Apr 15, 2020 reply Follow flag (2n C n) / (n+1) 0 0 replyShare Please log in or register to add a comment.