1. We are running Bubble Sort on an array. After 2 passes, the array looks like this: Index 0 1 2 3 4 Value 8 5 3 9 10 What were the indices of 5 and 3 in the original array before Bubble Sort started? Original Index of 5 Original Index of 3

icon
Related questions
Question
1. We are running Bubble Sort on an array. After 2 passes, the array looks like this:
Index
0
1
2
3
4
Value
8
5
3
9
10
What were the indices of 5 and 3 in the original array before Bubble Sort started?
Original Index of 5
Original Index of 3
Transcribed Image Text:1. We are running Bubble Sort on an array. After 2 passes, the array looks like this: Index 0 1 2 3 4 Value 8 5 3 9 10 What were the indices of 5 and 3 in the original array before Bubble Sort started? Original Index of 5 Original Index of 3
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer