Computer Science, Python, Big O Notation, Time Complexity, Algorithms.
times as much). It’s advisable to avoid this type of algorithm for large inputs as it takes an enormous amount of time. def o_squeared(n): for i in range(n): for j in range(n): print(i, j) We can go even further and add another small loop after the first one finishes. In this case, our algorithm