Computer Science, asked by archisman36, 9 months ago

An array 18, 13, 2, 9, 5 is 13, 2, 9, 18, 5 after three passes. Which sorting technique is applied on it ?​

Answers

Answered by mrduckly
2

Answer:

bubble sort

Explanation:

first pass: 18, 13, 2, 9, 5 ⇒13, 18, 2, 9, 5

second pass: 13, 18, 2, 9, 5 ⇒13, 2, 18, 9, 5

second pass: 13, 2, 18, 9, 5 ⇒13, 2, 9, 18, 5

Similar questions