MAD101_-_SU_2024_-_FE_2281.webp
G

MAD101_-_SU_2024_-_FE_2281.webp

  • Media owner Gray892
  • Ngày thêm
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?

Thông tin

Category
MAD101
Thêm bởi
Gray892
Ngày thêm
Lượt xem
6,314
Lượt bình luận
19
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom