answersLogoWhite

0


Best Answer

void recursiveleaf( struct heap *p){

if (p==NULL)

return;

if (p->left==NULL && p->right == NULL)

printf ("%d ",p->value);

recursiveleaf(p->right);

recursiveleaf(p->left);

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to find number of leaves in a heap recursively?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is slugs place like?

the heap of leaves


Q1 Find the minimum and the maximum number of keys that a heap of height h can contain?

Q1. Find the minimum and the maximum number of keys that a heap of height h can contain.


Can dry leaves be recycled?

They are biodegradable. Just toss em into a compost heap


Where can one find lyrics for the song Goodnight and Go by Imogen Heap?

There are a number of websites online that offer lyrics for the song 'Goodnight and Go' by Imogen Heap such as azlyrics, sing 365, metro lyrics, and stlyrics.


What is heap file?

A large number of file .


How do you use the word Heap in a sentence?

"The clothes were piled in a heap on the floor." "The heap of coal shifted dangerously before finally falling over." (Colloquially, the word heap is sometimes used improperly to indicate a large volume or number : "In the sink there were a heap of dishes to be done." )


Where can one find more information about Septimus Heap?

One can find information about Septimus Heap on various websites like Wikipedia and SeptimusHeap. One could also go to a local library and ask for information about Septimus Heap in there.


What is the meaning of heap?

A crowd; a throng; a multitude or great number of persons., A great number or large quantity of things not placed in a pile., A pile or mass; a collection of things laid in a body, or thrown together so as to form an elevation; as, a heap of earth or stones., To collect in great quantity; to amass; to lay up; to accumulate; -- usually with up; as, to heap up treasures., To throw or lay in a heap; to make a heap of; to pile; as, to heap stones; -- often with up; as, to heap up earth; or with on; as, to heap on wood or coal., To form or round into a heap, as in measuring; to fill (a measure) more than even full.


How much is in a heap?

A heap is unspecified - it is a group of things placed, thrown or lying one on another. It can be a great quantity or a small number. It can refer to a 'heap' of food on a plate to a 'heap' of stone as in a hill. A similar word would be 'pile'


What is the title of septimus heap number 6?

darke


What is the minimum number of elements in a heap of level 4(The root of the tree is at level 0.)option1. 202. 163. 15?

The minimum number of elements in a heap of level 4 is 15.


What is the difference between binary heap and binomial heap?

The difference between Binomial heap and binary heap is Binary heap is a single heap with max heap or min heap property and Binomial heap is a collection of binary heap structures(also called forest of trees).