正在加载视频...
视频加载失败
Stupidest ways people have solved coding interviews 😅
83,734 次观看 • 1 年前 •via X (Twitter)
10 条评论

Sleep sort the underrated GOAT

Haha, that's sleepsort. I actually wrote a blog post on it a while back:

Nah, sleep sort guy was messing with you.

That sleep sort one is just the GOAT. The O(n) for isEven is just crazy 🤣.

Oh my god sleep sort is insane

Sleep sort. It’s a meme

Tip to future applicants, check the last digit of an integer for better performance, ex; function isEven(input) { return Number.isInteger(input) ? (function(input) { const d = input.toString().at(-1); return [0, 2, 4, 6, 8].some(i => i == d); })(input) : false; }

O(n) for isEven func is crazy work

Why did the Sleep Sort algorithm think it was the best? Because it literally did nothing & let everyone else finish first.

The second guy basically made a quantum computer in javascript.🧠
相关视频
Sensitive content
Women would have a dozen kids if this was what they had to look forward to lol Boom solved the population problem.😅
Catarina Senora Gatita
138,145 次观看 • 9 个月前


