News for hackers. Stuff that matters.
Re:How to hire engineering talent without the BS by pessimizer on Sunday March 05, 2023 @01:21PM (#35032368)
Easier? You usually aren't coding FizzBuzz in production code either (although probably more often than inverting binary trees.)
Re:How to hire engineering talent without the BS by snozolli on Sunday March 05, 2023 @02:06PM (#35032800)
Easier?

What's easier?

You usually aren't coding FizzBuzz in production code either

I would say you're constantly coding FizzBuzz. Looping, modulus arithmetic, and conditionals are all over the code I've written. At least with FizzBuzz you have a test of a person's ability to understand a task, break it down, and make sure the logic is consistent. With tree "inversion" it's not even a sensical request, it's utterly useless, and there are countless more interesting and practical ways to test understanding of recursion and trees. Knowledge that, I would bet, isn't even relevant for 90% of programmers, and if tree traversal were relevant then you'd probably want to jump to way more difficult questions (I'm thinking of the Facebook graph, for example).

I agree with the other commenter that it would make far more sense to ask questions like "you need to process data of this type, what provided data structure (e.g. C++'s STL) would you choose?"

Re:How to hire engineering talent without the BS by zeroonetwothree on Sunday March 05, 2023 @09:48PM (#35036963)
I've certainly done tree traversal far more than modular arithmetic (at least at work, for fun I do recreational math problems...)