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
The following array of integers is not sorted into ascending order correctly:
[400,300,520,100,110,500,60,100,250,460,470,90,340,216,411,378,158,38,272,272,378,216,470,520,60]
I believe the wikipedia pseudo code continues the sort loop if there is a swap, even if gap == 1.