Quiz: Algorithm Analysis
Test your understanding of algorithm analysis in coding interviews.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the time complexity of the following code?
def find_max(arr):
max_val = arr[0]
for num in arr:
if num > max_val:
max_val = num
return max_val
A.
B.
C.
D.
1 / 5