Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agree 100%. The problem is that leetcode problems are nothing like the actual practice of writing commercial code. Writing good commercial code is about keeping things as simple as possible, as clean as possible, as readable as possible. Use libraries for the complex stuff, don't invent complex solutions. And, as you say, use standard data structures whenever possible. Don't optimise early. Don't fix performance bottlenecks unless you actually know they're causing a problem in production. And even then, throwing more hardware at the problem is often better than making the codebase more complex. None of this is anywhere near what leetcode tests.

The best interview method I've seen is getting the candidate to work for a day or two alongside the team. The second-best was picking a bug from the current repo and working it out together with the candidate, getting them (or in this case, me) to work out why the bug was happening, work out a solution, code up the solution, and commit it back to the repo as a PR.



> The best interview method I've seen is getting the candidate to work for a day or two alongside the team.

That doesn't scale - what if you have 100 applicants? The leetcode will narrow down the field.


Yeah, I've only seen it work for the last few applicants, but it did work really well.

The "pick a bug and fix it" scales better, though still not to 100 applicants.

Though I'd say putting 100 people through leetcode interviews would still break a talent acquisition process. I've been part of this kind of process before (though with arbitrary code problems not leetcode) and it was hell for the entire team going through it. Nothing got done for weeks while they were dragged into endless tech interviews.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: