An array of 'n' integers is given. What is the time complexity of a linear search algorithm that searches for a given target value 'k' within the array?
O(n)
O(log n)
O(1)
O(n^2)

Data Structures and Algorithms Übungen werden geladen ...