Linear Sort xkcd.com/3026
213 reposts2.5K likes
Linear Sort xkcd.com/3026
213 reposts2.5K likes
Sleepsort also sorts in linear time, and is faster: www.cs.princeton.edu/courses/arch...
Right, but I don’t think they are the same time complexity: bsky.app/profile/yoz....
And I’m no expert in O notation, but isn’t sleepsort O(sum(list)) rather than O(size(list))? (This is where my lack of expertise really shows)
Thank you! Explaining the joke always ruins it, but one of the things l like about @xkcd.com is that, even if don’t laugh, I still learn something!
Oh wait you didn't at least credit @mewtru.com youtu.be/zfYd4qUSRu4?...
Why? It's a different algo. This lady, or intervieweee, did not invent sleep-sort. First known example comes from a post on 4chan in 2011: archive.fo/xhGo#selecti... The answer actually gives the applicant useful feedback on how they respond. Do they have geeky knowledge and a sense of humour?
Title text: "The best case is O(n), and the worst case is that someone checks why." Alt text: https://explainxkcd.com/3026#Transcript