Quizlearn
.app
An algorithm executes a loop that performs constant-time operations on each of the n elements in an array. What is the time complexity of this algorithm?
O(n^2)
O(log n)
O(n)
O(1)
Computer Science Exercises are loading ...