what does the term Constant time mean?


Constant time operation does not depend upon the input size.
For example, if you want to access an element from array, it is a constant time operation.
But if you want to access the minimum element from the array, it is not a constant time operation as you have to traverse the complete array in order to find the minimum element.


Sponsored Links