The total number of comparisons in a bubble sort is
A. 0(log n)
B. 0(n log n)
C. 0(n)
D. None of the above
Answer:B
The total number of comparisons in a bubble sort is
A. 0(log n) B. 0(n log n) C. 0(n) D. None of the above