

MCQOPTIONS
Saved Bookmarks
1. |
What happens if we apply the below operations on an input sequence?i. construct a cartesian tree for input sequenceii. put the root element of above tree in a priority queueiii. if( priority queue is not empty) theniv. search and delete minimum value in priority queuev. add that to outputvi. 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 | |