You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my improved bubbleSort algorithm. I have seen some implementations that track if the array is sorted while working in the middle, but this tracks where the last swap occured so it can jump ahead on partially sorted lists.
About
My slightly improved bubble sort algorithm. Still O n^2, but just a tad faster