Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thomasmg
2 days ago
|
parent
|
context
|
favorite
| on:
When would you ever want bubblesort? (2023)
There is stable in-place merge sort [1], which is O(n*log(n)^2) and not that complex or hard to implement (about 80 lines, and that includes the ~15 lines of binarySearch, which you might need anyway).
[1]
https://github.com/thomasmueller/bau-lang/blob/main/src/test...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://github.com/thomasmueller/bau-lang/blob/main/src/test...