Explain Bubble Sort.
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain how bubble sort works, from a single pass of neighbor comparisons to the point where the list is sorted. It tests the guarantee each pass gives, the stopping condition, a hand trace on a small list, and the algorithm's cost and stability.