Sail E0 Webinar
Question
What is the worst case complexity of bubble sort?
Options:
A .  O(nlogn)
B .  O(logn)
C .  O(n)
D .  O(n2)
Answer: Option D


Bubble sort works by starting from the first element and swapping the elements if required in each iteration.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers