Sail E0 Webinar
Question
What does this pseudo_code return ?int myfun(heap_arr[]) { int mini=INF; for(int i=0;i
Options:
A .  Last added element to heap
B .  First element added to heap
C .  Root of the heap
D .  Leftmost node of the heap
Answer: Option C


The function return minimum value in the heap_Array which is equal to the root value of the heap.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers