Live data from Hacker News

I Don't Want to Hire You If You Can't Reverse a Binary Tree

thecodebarbarian.com

11–20 of 115 posts

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#11

Couldn't disagree more with the author. How many developers need to implement their own binary-tree? This is why code-bases become convoluted with six different implementations of standard data structures.

That's missing the point of the article.

The author says that the candidate's thought process behind arriving at the solution provides insight into the candidate's skill.

There's no reason to implement your own binary tree, but knowing how to devise algorithms to accomplish a given task is a necessary competency.

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#13
This misses the point. You showed how easy it is to do this stuff in a real text editor without a time constraint with the luxury of testing and research before you published the post about how easy it is. That's not at all the same as solving an artificial problem on a whiteboard while nervous and in a rush and no ability to test or research

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#14

Couldn't disagree more with the author. How many developers need to implement their own binary-tree? This is why code-bases become convoluted with six different implementations of standard data structures.

It's not 100% false that to use a library effectively you have to be able to write it.

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#15

Bad article IMO and no idea how it's front page. Yes a database may rely on b trees under the hood, but thankfully someone else has implemented that complexity so my web developer can concentrate on higher level interactions with it. His herpes analogy is ridiculous. And I've used brew since getting a Mac and no I'm not suffering now.

front page because the 'reversing binary trees considered harmful' article got a lot of attention last year

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#16

Bad article IMO and no idea how it's front page. Yes a database may rely on b trees under the hood, but thankfully someone else has implemented that complexity so my web developer can concentrate on higher level interactions with it. His herpes analogy is ridiculous. And I've used brew since getting a Mac and no I'm not suffering now.

Exactly, I would take this interview question to mean that this place is so cheap that they won't even invest in a proper database engine for the product to run on. You have to implement the database engine yourself. And that you probably won't get paid commensurately for it.

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#17
> "Just about everything you do in your programming career will be related to trees."

I've never knowingly used a tree structure since college, everything is abstracted away from me. Now whether this is a good thing or a bad thing remains to be seen, but it has not been a problem yet.

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#18
Many working programmers will disagree with this article. That's a good start, but we should also work toward ending this practice:

1. If your company does it, you should try to end it. Research alternatives and propose them. Take-home problems that mimic real problems at your company might be an option, as would hiring someone for a few contracting hours to do solve real problems before hiring them full-time.

2. If you apply to a company that uses these questions, politely excuse yourself from the process (assuming you are at the point in your life where you can refuse offers). That company probably doesn't really have the employee-focused culture you'd want to be a part of. If enough candidates refuse to do these tests, we might see them decline in prevalence.

3. If your company used interview methods like this and then stopped, try to create a case study. What did your company switch to? Do you have data to back up the perceived benefits of the switch?

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#19
Terrible way to hire in my opinion.

Personally, I'd rather hire employees who are resourceful, can admit when they don't know something, can follow up with others and conduct proper research to tackle cases where they don't know the solution to a problem, and most of all, are a pleasure to work with and bring good and diligent attitudes about work into the office.

Hiring based on questions like this will get you someone ahead of the curve who perhaps you can trust to execute well immediately but will probably turn out to be a massive pain in the rear in the long run.

I'd rather hire people with good attitudes and willingness to learn and spend the extra time training them and helping them out rather than hire someone because they happened to get in enough rote technical exercises before coming into the interview.

Re: I Don't Want to Hire You If You Can't Reverse a Binary Tree

#20
I think some folks get hung up on the idea that the answer to one question can be used as a go/no-go for a hire decision.

Its never that simple, there's a lot more to consider, and the vast majority of candidates will bomb a technical question or two eventually.

For those of you that are job hunting right now... don't get bent out of shape, there are plenty of employers that won't hinge their acceptance on one technical brain-teaser.

Post reply on HN