Calculate the total space complexity of an algorithm that creates an array of size n, inserts n elements, and performs a linear search on the array.
O(1)
O(n^2)
O(n)
O(log n)

Data Structures and Algorithms Exercises are loading ...