What is the complexity of given function of insertion. insert(int n) { if(buffer_size()< maxi_biffer_size()) buffer
Posted: Wed Jul 13, 2022 7:42 pm
a) O(logn)
b) amortized O(1)
c) O(n)
d) O (n*logn)
b) amortized O(1)
c) O(n)
d) O (n*logn)