HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by demosito666 | Hacker News Reader
Parent
Full thread
demosito666
·
aka bubble sort
View on HN
miloignis
·
It is definitely not bubble sort, which only uses a single index comparing items next to each other in the array.
balefrost
·
Check the direction of the comparison, and check the bounds of the loops. It's not really bubble sort.
recursive
·
And check whether the compared elements are adjacent.
Reply on news.ycombinator.com