News for hackers. Stuff that matters.
Re:Bubblesort, rocksort, and cocktail-shaker sort by taneq on Wednesday December 16, 2020 @07:33AM (#25441795)
Nope, sorry - never saw them compared head to head like that. I'd imagine they'd be pretty similar though.
Re:Bubblesort, rocksort, and cocktail-shaker sort by ogogmad on Wednesday December 16, 2020 @07:39AM (#25441840)
Without further information, I would be strongly tempted to swap out the bubble sort for insertion sort. Less code and should be faster.