V Vy Bùi New member Sep 16, 2021 #1 What is the time complexity to insert a node based on position in a priority queue? A. O(nlogn) B. O(logn) C. O D. O(n$^{2}$)
What is the time complexity to insert a node based on position in a priority queue? A. O(nlogn) B. O(logn) C. O D. O(n$^{2}$)
P Phan Văn Khánh New member Sep 16, 2021 #2 Answer: C Explanation: In the worst case, you might have to traverse the entire list. Upvote 0 Downvote