

MCQOPTIONS
Saved Bookmarks
1. |
After applying the below operations on a input sequence, what happens? i. construct a cartesian tree for input sequence ii. put the root element of above tree in a priority queue iii. if( priority queue is not empty) then .search and delete minimum value in priority queue .add that to output .add cartesian tree children of above node to priority queue |
A. | constructs a cartesian tree |
B. | sorts the input sequence |
C. | does nothing |
D. | produces some random output |
Answer» C. does nothing | |