Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
halflife
· 2w ago · 0 comments
replace the settimeout with a stack and you have an efficient stack sort?
Comments
[–]
post-it
2w ago
I don't think so.
[–]
logicallee
2w ago
it's a good idea.
[–]
halflife
OP
2w ago
Not really, it will be a very dumb sort, you just place the item at an array index, so you can’t have duplicate numbers or negative
[–]
logicallee
2w ago
ok. I tried it. yes, the standard algorithms (qsort etc) are better.