in c++, task 2 using this Binary search tree

Insert elements {15,8,10,19,16,23,6,7,9,20,26,1,25) using your client program to construct following BST. 15 root 19 16 23 10 26 20 25 Task 2: Implement numberofLeafNodes recursive function as follows int numberofLeafNodes (Bst *tree) that returns the number of Leaf Nodes in the constructed tree Precondition: tree has been initialized. Postcondition: returns number of leaf nodes (Leaf node doesn’t have any child) Example: For above given BST Result should be: 6 (1,7,9,16,20,25) Show transcribed
PayPal Gateway not configured
PayPal Gateway not configured