Got code for time complexity analysis in practice test:
for i in 0..n-1:
for j in 0..i:
The answer wrote the complexity for this as O(n^2) with the explanation that both loops have complexity O(n). I am confused by why this isn't O(n!), given that the inner loop will run first 0 times, then 1, 2, 3 and so on until n-1 times.