by tkamat29 · 1w ago · 0 comments
Leetcode is popular because:
1. It gauges problem solving ability and pattern recognition, which are essential to any job, and particularly useful for software engineers.
2. It is language agnostic - most jobs would rather have a strong engineer that doesn't know their particular language/tech stack than a weak engineer that is familiar with the stack.
3. It has objective evaluation criteria (correctness + time/space complexity).
It's certainly not perfect, but I have yet to see an alternative that accomplishes all of the above. The one thing I can see potentially complementing it is the new style of AI-assisted assessment where you are dropped into an unknown codebase, and asked to make fixes/features that are assisted by an AI agent. This solves the language-agnostic issue with pre-AI versions of these interviews, where you had to have memorized specific tech stack features or language syntax in order to accomplish the task. Now AI can take care of that stuff, and the interviewee can focus on the problem solving aspect.
Proof of claim required. Leetcode primarily measure's someone's ability to memorize leetcode problems, and secondarily measures their ability to vomit this knowledge up in a stressful situation.
There's an entire test-prep industry surrounding this interview method. Any undergrad will tell you that the way you pass leetcode interviews is to "grind". You'd have to be oblivious to not realize that the system has been gamed to hell and back.
Since you are just asserting things, I will assert a simpler explanation: the primary reason Leetcode is popular is because it is cheap. If you have the problem that you have too many applicants and don't want to spend money interviewing them all, you have to come up with an efficient filter that doesn't violate hiring laws. You don't particularly care if the false negative rate is high, so a test of superficially relevant trivia is what you do. Even better if the trivia can be validated by computer!
Setting aside the fact that almost no companies actually had this problem outside of FAANG, thanks to AI, the approach has gone from "somewhat relevant" to "completely irrelevant" within a couple of years. It's time to take it out back and shoot it.
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.
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.
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.
I’m sure the companies know that Leetcode is not a great indicator for likelihood to succeed in the role. If they had a perfect information about people, then would stop interviewing at all and just take the best people who applied.
They don’t have perfect information. The information is highly asymmetric. The companies are just trying to not be efficient and not get burned.
It sucks for candidates. But it makes sense for companies when they thousands of applicants they know effectively nothing about.
Unless... it doesn't? Nobody has ever proven that it is objectively a good way to select people. It's just a poor reasoning of "I don't have a solution for it, so this is better than nothing".
But "I have no idea at all and I will just randomly assume that it is better than nothing" is not the kind of reasoning I would be proud of. "We hire the best of the best based on our idiotic reasoning" is a bit contradictory to me.
How about we actually talk to the candidates and try to make an opinion based on that?
I did some interviewing in the past. My way was to behave as if I was having a 1h coffee with a new colleague. I would ask them who they are, what they do, what they will be bringing to the company. "Oh you have experience in this topic and will work on that here? Can you talk to me about that topic?". Of course I would steer the discussion towards technical subjects.
At the end of the interview, I would have an opinion about whether I would like to work more with that "hypothetical colleague" and whether it seems like they could help me. If I didn't feel like working with that person at a human level, then probably we should not hire them to work with me, right? And if I didn't feel like they would technically be a good fit for my team, again we should not hire them. But if the feeling is "nice person, I would like to work with them", then we should definitely give it a shot!
Turns out all the people I hired like this ended up being good colleagues. The only people who quickly left or got fired were people hired through leetcode. It's just a datapoint, but it tells me that it's not obviously the case that leetcode is superior.
The second thing I want to say is that I have been in interviews as an "observer", where my colleague would conduct the leetcode part. And every single time, the colleague in question would feel superior (because they know the solution to the exercise, obviously). Though multiple times I was pretty sure that the colleague would not be able to solve that same exercise if they hadn't read the solution before. How hypocritical, but it makes the interviewers feel good about themselves, right?
In other fields, those things aren't nearly as meaningless and easy to game as they are in ours.
Well, no. It rewards ability (and free time) to repeatedly work through problems and memorize the solutions. And it rewards acting skills so you can perform like you're discovering solutions on the fly, that you've actually memorized.
That's all it does.
That's the typical "it's better than nothing" without actually proving that it is.
By filtering on the people who are willing to play along with those bullshit tests, you end up with that kind of people only. I was in such a company, and it was pretty obvious to me.
And the only reason to believe those people are "the best" is if you yourself are part of that group. Everybody wants to believe they are the elite.
Now if I look at what the most "leetcode-selective" companies are bringing to the world... I'm not sure it's a big success.
> It has objective evaluation criteria
No. I has evaluation criteria, that's all.