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)
This question is part of this quiz :