In an array-based implementation of a heap, the heapInsert operation is ______.
a) O(1)
b) O(n)
c) O(n2)
d) O(log n)
d.
Computer Science & Information Technology
a) O(1)
b) O(n)
c) O(n2)
d) O(log n)
d.