Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will happen if Bubble Sort is used on an already sorted array?
It will take O(log n) time.
It will take O( 1 ) time.
It will take O(n^2) time.
It will take O( n ) time if an optimization flag is used.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!