Loading video...

Video Failed to Load

Go Home

Stupidest ways people have solved coding interviews 😅

83,734 views • 1 year ago •via X (Twitter)

10 Comments

Theo - t3.gg's profile picture
Theo - t3.gg1 year ago

Sleep sort the underrated GOAT

Animesh Chouhan's profile picture
Animesh Chouhan1 year ago

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

Barrel-rider's profile picture
Barrel-rider1 year ago

Nah, sleep sort guy was messing with you.

Mohak Bajaj's profile picture
Mohak Bajaj1 year ago

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

Mike Rundle's profile picture
Mike Rundle1 year ago

Oh my god sleep sort is insane

Benathon's profile picture
Benathon1 year ago

Sleep sort. It’s a meme

S0AndS0.eth's profile picture
S0AndS0.eth1 year ago

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's profile picture
Izuuu1 year ago

O(n) for isEven func is crazy work

A🔻's profile picture
A🔻1 year ago

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

Anthr@X's profile picture
Anthr@X1 year ago

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

Related Videos