Consider that m elements are to be sorted. What is the worst case time complexity of bubble sort ? A. O(1) B. O(log n) C. O(n) D. O(n2)
Consider that m elements are to be sorted. What is the worst case time complexity of bubble sort ?
- O(1)
- O(log n)
- O(n)
- O(n2)
Answer & Explanation
Answer: Option D
TAGS:
Comments
Post a Comment