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
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