Question

What is the time complexity for inserting an element into a binary heap?

A O(1)
B O(log n)
C O(n)
D O(n log n)
E O(n²)
Practice Next

Hey! Ask a query