Note time complexity of the algorithm