Q. |
What is the time complexity to insert a node based on position in a priority queue? |
A. | O(nlogn) |
B. | O(logn) |
C. | O(n) |
D. | O(n2) |
Answer» C. O(n) |
Login to Continue
It will take less than 2 minutes