正在加载视频...

视频加载失败

Stupidest ways people have solved coding interviews 😅

83,734 次观看 • 1 年前 •via X (Twitter)

10 条评论

Theo - t3.gg 的头像
Theo - t3.gg1 年前

Sleep sort the underrated GOAT

Animesh Chouhan 的头像
Animesh Chouhan1 年前

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

Barrel-rider 的头像
Barrel-rider1 年前

Nah, sleep sort guy was messing with you.

Mohak Bajaj 的头像
Mohak Bajaj1 年前

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

Mike Rundle 的头像
Mike Rundle1 年前

Oh my god sleep sort is insane

Benathon 的头像
Benathon1 年前

Sleep sort. It’s a meme

S0AndS0.eth 的头像
S0AndS0.eth1 年前

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; }

Izuuu 的头像
Izuuu1 年前

O(n) for isEven func is crazy work

A🔻 的头像
A🔻1 年前

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

Anthr@X 的头像
Anthr@X1 年前

The second guy basically made a quantum computer in javascript.🧠

相关视频