What is the time complexity of Bubble Sort?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Give the best, average and worst-case time complexity of bubble sort and explain where each bound comes from. It tests counting comparisons and swaps, what the best case depends on, and how bubble sort compares with other simple sorts.