Question DSA-SORT-0032
EasyAt most how many passes does bubble sort need for n elements?
- A.
n
- B.
log n
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Sorting question
At most how many passes does bubble sort need for n elements?
n
log n
Sign up free to see the answer and a step-by-step explanation.
n − 1
n²