In the question it is mentioned that the no.of inputs to be taken is (2^N)-1 which is equal to 15 in this case as n=4,but in the example the no. of inputs provided is 19 which is not equal to the condition mentioned above.
Wrong no. of inputs
For N levels is a binary tree, there can be at max (2^n)-1 nodes and you can verify that from the tree diagram given in the question.
But yes it is not necessary that number of inputs will be (2^N)-1. So that must be corrected
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.