5,045 views
31 votes
31 votes
Let L be a list of length 100 and L is to be sorted using the bubble sort algorithm. Then in each iteration of the sorting face, which of the following elements are compared first?

a. L[0] and L[99]

b. L[0] and L[1]

c. L[1] and L[99]

d. L[99] and L[100]

User Volox
by
3.2k points

1 Answer

29 votes
29 votes

Answer:

t-shirts uhrjoooopk pkg frjppppppppppppppppppppppppppppo uglies yt\f bcg he

User Dough
by
3.1k points