Đăng nhập ngay để lưu kết quả bài làm
Đăng nhập

[ESL] Visualizing Bubble Sort Algorithm

Câu 1

Where does the algorithm start in the number sequence?

At the beginning.
At random.
At the end.
In the middle.
Câu 2

Given the initial sequence 3, 5, 4, 1, 2, what is the new sequence after the first pass of bubble sort?

1, 3, 5, 4, 2.
3, 1, 2, 5, 4.
2, 1, 3, 5, 4.
1, 5, 3, 4, 2.