answersLogoWhite

0

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

16y ago

What else can I help you with?

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.


How does Heap's algorithm generate all possible permutations of a given set efficiently?

Heap's algorithm efficiently generates all possible permutations of a given set by using a systematic approach that minimizes the number of swaps needed to generate each permutation. It achieves this by recursively swapping elements in the set to create new permutations, ensuring that each permutation is unique and all possible permutations are generated.


What is the time complexity of heap search in terms of its search time complexity?

The time complexity of heap search is O(log n), where n is the number of elements in the heap. This means that the search time complexity of a heap search operation is logarithmic in the number of elements in the heap.


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 title of septimus heap number 6?

darke


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 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.