Hacker News new | ask | show | jobs
by RobKohr 7 days ago
Memorize them? All? Is that even possible.

You puzzle through them, think out loud, and figure them out. It lets interviewers know how you think.

Not sure why the hate for them. If you are a competent programmer, they aren't usually that difficult.

2 comments

> If you are a competent programmer, they aren't usually that difficult.

That's reaching.

Most capable programmers may be confused or be blank when they are forced to solve a time boxed puzzle. They may even wrongly conclude that they are incapable of doing it. But, in reality it is just their mind is not stimulated/focused enough to solve that particular version of puzzle. When their mind is free, they could solve anything similar even from first principles.

OTOH, leedcode problems themselves fall under a predictable pattern, and by memorizing(familiarizing) certain recurring patterns, you can give the impression that you have thought through the problem. This is what most recent college grads do - Hey, this is easy, let us find a pivot for this quick sort problem.

Original thinkers might even question why you need a quick sort for this problem (for e.g Homebrew Max Howell inverting the binary tree). But then clock is ticking and you should solve the problem or you cannot pay your bills.

Leedcode is an approximation that works for companies. It does not say anything about the capability of the person, just their preparedness to be evaluated on this specific criteria.

It’s certainly possible. You don’t need to memorize all of them. Recurring patterns appear, so you end up memorizing the patterns, and then the exceptions for specific problems. It’s not dissimilar to learning a human language, which we also can do.

More to the point, interview questions go through fads, so you’ll get repeated hits on the same class of questions if you do a few rounds. I’ve literally had job offers (yes, plural: this has happened multiple times) because some nitwit hit me with the exact same question I saw the week before.

This happens more than you are likely aware, and is a perfect example of why the approach is stupid. Everyone is cargo-culting each other, pretending it’s a brilliant, unassailable system, and they’re completely unaware that ten other companies are asking the exact same things.