by angarg12 · 3y ago · 0 comments
Well, my anecdotal evidence doesn't support this.
I've done 500+ interviews for big tech, and often it is easy to spot people who have grinded leetcode. They excel at DSA, but fail at system design, or even low level design.
The thing is that overall I kind of agree with this article. Leetcode is great as a fun coding exercise. I also think they help the craft like katas help martial artist to practice.
The problem is when me getting the job depends on solving a coding puzzle. Sometimes I can solve a leetcode hard with ease and sometimes I get completely blocked in a medium one. Getting a job becomes more of a random toss than assessment of my skills. And yes, my company, and by extension me, are very guilty of this.
To give a positive example here: when someone sends a 1k lines PR implementing a new big feature, how well a body of a single function is implemented is often a good predictor of whether the whole PR makes sense.
About your second point, not to be a dick, but if someone on my team sent a 1k loc single PR for a big feature, I would sit down with them to have a conversation about why that is bad (I have indeed done this before).
I’ve coined a term for this throughout my long job search, it’s called the “leetcode lottery” (patent pending).
You can do a couple of hundred leetcode problems, but you’re still at the mercy of the Gods when your technical interview comes around. The worst part of this whole charade is that I come out of most interviews having learned nothing valuable and I can say the same for the interviewer. They haven’t learned about my strengths and weaknesses, etc.
I don’t have a better solution for how you can get an idea of my knowledge and skills over 2-3 hours of technical interviews though. And until someone does come up with a better idea, we’re stuck playing this game.
I have worked somewhere that we used online coding as part of our hiring process and it was valuable, but I agree that it's terrible as a gate. We used it because recruiters seemed to keep sending us people who can't write software, and it's just soul-destroying to sit down and interview people who are completely unable to do the job and had just sort of hoped we wouldn't check.
My favourite interview though was somebody whose coding was excellent, and I spent the interview trying to figure out whether she's acting the way she is because she's terrified, or because she's incompetent. Turns out she was terrified, she's Russian and our interview was her first time using English, a language she'd learned in the classroom, in real life -- and she'd only been in the country for about one day.
The reason I cared is, humans can't stay terrified for a prolonged period. No matter what's happening, even if it initially causes blind panic after not long they adjust to it. So if she was terrified that'll wear off after we hire her, which we did.
Leetcode was the gate for a while, then system design was added on to it.
>Leetcode is great as a fun coding exercise. I also think they help the craft like katas help martial artist to practice.
I know this is completely subjective, but it bothers me to solve toy problems that people have likely already solved (and now ChatGPT might be able to point you in a general direction given a plainly written problem description).
And practicing it for a muscle reflex effect seems silly because you're unlikely to run into these again.
However on the flip side, even business problems which are composed of things that people have solved before still seem novel, so I'm more engaged on those kinds.