I am having a dispute with a co-worker regarding a Big O question. For example, consider the following Python for-loop that prints every 100th element:
n = 10000
for i, x in range(0, n, 100):
print(i)
I think the complexity is O(log n) as opposed to O(n), because it grows not quite linearly. O(n) is not wrong, I think, but isn't O(log n) more precise?
Thanks!