3 ms·If you limit n then than the algorithm is actually O(1) time too -- his answer is wrong either way.by pantaloons 14y agoIf you limit n then than the algorithm is actually O(1) time too -- his answer is wrong either way.