Q. What is the time complexity to insert a node based on key in a priority queue? (Solved)

1. O(nlogn)

2. O(logn)

3. O(n)

4. O(n2)

  • c. O(n)
Subscribe Now

Get All Updates & News