Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Stupidest ways people have solved coding interviews 😅

83,734 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Theo - t3.gg
Theo - t3.ggvor 1 Jahr

Sleep sort the underrated GOAT

Profilbild von Animesh Chouhan
Animesh Chouhanvor 1 Jahr

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

Profilbild von Barrel-rider
Barrel-ridervor 1 Jahr

Nah, sleep sort guy was messing with you.

Profilbild von Mohak Bajaj
Mohak Bajajvor 1 Jahr

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

Profilbild von Mike Rundle
Mike Rundlevor 1 Jahr

Oh my god sleep sort is insane

Profilbild von Benathon
Benathonvor 1 Jahr

Sleep sort. It’s a meme

Profilbild von S0AndS0.eth
S0AndS0.ethvor 1 Jahr

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

Profilbild von Izuuu
Izuuuvor 1 Jahr

O(n) for isEven func is crazy work

Profilbild von A🔻
A🔻vor 1 Jahr

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

Profilbild von Anthr@X
Anthr@Xvor 1 Jahr

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

Ähnliche Videos