• Tutorials
  • Courses
  • Tracks

Q1.

Last Updated :
Discuss
Comments

What is the time complexity of inserting an element into a max heap of size n ?

O(1)

O(log n)

O(n)

O(n*log n)

Share your thoughts in the comments