Kizspy | Question: 13
(Choose 1 answer)
(See picture)
A. 6
B. 7
C. 8
D. 9
E. None of the other choices is correct
Given the algorithm
procedure la (a1, a2,..., an integers)m: = a1 t: = 1 for i:= 2 to n if (a₁ ≥ m) then m:=a t: = i
If the input is the list
[1, 2, 3, 6, 7, 8, 3, 4, 8, 6],
what is the value of t when the algorithm terminates?