menu search
person

The number of comparisons required for bubble sorting of an array of n elements is ________

a) n(n-1)/2

b) n/2

c) log2

d) log10n

thumb_up_alt 0 like thumb_down_alt 0 dislike
92 views

1 Answer

 
verified
A) n(n-1)/2

Is the right answer
thumb_up_alt 0 like thumb_down_alt 0 dislike
...