fubarx@lemmy.world to Programmer Humor@programming.dev · 8 hours agoAI Bubblesortlemmy.worldimagemessage-square23linkfedilinkarrow-up1161arrow-down117
arrow-up1144arrow-down1imageAI Bubblesortlemmy.worldfubarx@lemmy.world to Programmer Humor@programming.dev · 8 hours agomessage-square23linkfedilink
minus-squareJohnnyCanuck@lemmy.calinkfedilinkarrow-up9·3 hours ago1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30…
minus-squareominous ocelot@leminal.spacelinkfedilinkarrow-up1·1 hour agoHuh. 101. Maybe the comparable.is_bigger(int) function needs some work. Or someone compared strings. :)
Should have been digits
1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30…
Huh. 101.
Maybe the comparable.is_bigger(int) function needs some work. Or someone compared strings. :)