What is the best case time complexity of comb sort and bubble sort respectively?

What is the best case time complexity of comb sort and bubble sort respectively?
A. O(n$^{2}$) and O(n log n)
B. O(n log n) and O(n)
C. O(n) and O(n$^{2}$)
D. O(n$^{2}$/2$^{a}$) (a=number of increment) and O(n$^{2}$)
 

Tìm kiếm

Back
Top