I have the following algorithm and need to conduct a Big O analysis on it. I'm very new to this topic but I understand O(1), O(n), O(n2)..O(log n) and O(n log n).
How would I analyze the following algorithm?
x <== 1
for i = 1 to n
for j = i to 1 (decrement)
x <== x + 1