Skip to content

Invert This Binary Tree (For a CRUD Job)

Naseebullah AhmadiSenior Software Engineer, London

Six rounds, a weekend take-home, and a hard LeetCode problem, all to hire someone who'll spend their first quarter adding fields to a form. Most interview loops test whether you can pass interview loops, and I'd rather test the job.

3 min read
#rant

In 2015 Max Howell, who wrote Homebrew, tweeted about his Google rejection: 90% of their engineers used his software, but he couldn't invert a binary tree on a whiteboard, so no. We all laughed, then most of us went back to running the same interviews.

I like algorithms; I've written a whole run of posts on two pointers. I still think most loops measure the wrong thing, and I suspect most interviewers know it.

What each round actually measures

The ad says "build and maintain our customer dashboard". Here's the loop that hires for it:

RoundWhat it measuresWhat the job needs
LeetCode: longest palindrome in O(n), 40 minhow many evenings you spent on LeetCode latelydebugging a flaky integration
"Two-hour" take-homehow much of your weekend you'll give awayshipping something reasonable on time
Six to eight rounds over two monthswho is still available by round sixsomeone the team actually decided on

Linear-time palindromes means Manacher's algorithm, and nearly everyone who knows it learned it from a LeetCode editorial, not at work. The people best suited to the dashboard job, the ones with kids or a current job they're busy being good at, are the ones who haven't had the evenings.

I get why it persists. At scale you need a test hundreds of interviewers can run the same way, and a puzzle with a known answer is easy to grade. Easy to grade isn't the same as measuring the job. And now that a model solves the puzzle faster than anyone in the room, the round increasingly measures who keeps one open in another window.

The take-home is the same problem in a different shape: a vague brief, no stated bar, other candidates polishing theirs, then a one-line rejection with no feedback. A weekend of unpaid work for a lottery ticket.

And more rounds don't make a hire safer. They spread the decision across so many people that nobody owns it, and the good candidates take another offer around round four.

What I'd run instead

The usual loop

  • Puzzles graded against a known answer
  • "Should take two hours" (it takes a weekend)
  • Six to eight rounds, six to eight weeks
  • A one-line rejection

Test the job

  • Pair on a small real-ish codebase with a bug and a feature request
  • Over two hours of take-home? Pay for it, or cut it down
  • Three rounds in two weeks: pairing, design, meet the team
  • Always two sentences of feedback

An hour watching someone read code they've never seen tells you more than a day of whiteboards. If three rounds still can't produce a decision, the problem is your rubric, not the candidate. And feedback costs you nothing; it's the only part of the process the candidate can use afterwards.

I haven't figured interviewing out either. But "the big companies do it this way" isn't a hiring strategy. It's cosplay.