logoalt Hacker News

BretonForearmtoday at 2:42 AM2 repliesview on HN

Spaghetti length is made visible (quickly comparable), but it's still not sorted.


Replies

AlotOfReadingtoday at 4:14 AM

Dropping spaghetti is an O(1) operation. Once that's done there's a straightforward O(N) sort by removing noodles in the order that they're intersected by horizontal plane descending from max_noodle_length to the table.

King-Aarontoday at 4:01 AM

It is sorted chronologically