Đặng Thị Thúy Hằng
New member
What does this pseudo_code return ?
A. Last added element to heap
B. First element added to heap
C. Root of the heap
D. Leftmost node of the heap
Code:
int myfun(heap_arr[])
{
int mini=INF;
for(int i=0;i<tot_node;i++)
mini=min(mini,heap_arr)
return mini;
}
B. First element added to heap
C. Root of the heap
D. Leftmost node of the heap