Bubble Sort in C#: A Generic Implementation with Early Exit
Bubble sort in modern C# for any comparable type, with the early-exit check that makes sorted input O(n), plus an honest look at when to use it.
Bubble sort in modern C# for any comparable type, with the early-exit check that makes sorted input O(n), plus an honest look at when to use it.