3 ms·
I refuse to write anything more advanced than Bubble Sort. When I want Nlog(N) I use the sort function in the language. It's strange that they repeat until the
by gus_massa 2y ago
I refuse to write anything more advanced than Bubble Sort. When I want Nlog(N) I use the sort function in the language.
It's strange that they repeat until the list is sorted. I usually repeat the pass N times, ignoring the last items to get a nice exactly N(N-1)/2 time