Question: 7. Given a heap with n nodes, if we know that there are 40 leaves in this heap, what are the possible values you can

 7. Given a heap with n nodes, if we know thatthere are 40 leaves in this heap, what are the possible values

7. Given a heap with n nodes, if we know that there are 40 leaves in this heap, what are the possible values you can take for n ? Ans: 8. Given a heap with n nodes, if we know that there are 60 nodes with height 1 in this heap, what are the possible values you can take for n ? Ans: 9. Given a heap with n nodes, if we know that there are 100 longest paths from the root, what is the smallest number for n ? Ans: Given an array with 6 elements {x1,x2,x3,x4,x5,x6}, we already know that x1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!