An algorithm iterates through an array of 'n' elements, performing a constant number of operations on each element. Which complexity class best describes this algorithm's time complexity?
O(n^2)
O(n)
O(log n)
O(1)

Data Structures and Algorithms Exercises are loading ...