Unless someone have seen the question before , who can write a 2d dp, or loop plus recursion with backtracking solution bugfree? What if someone writes a bug free solution but clearly has seen it before , although was able to explain it well, versus someone who clearly not seen it before but can only get to 65% of the way on his own. Which candidate would you prefer
If you haven’t seen the question before, you are screwed anyways. 😅
As long as you can see the bug and have some clue of how to fix it.
If you are able to find the bug and fix it, no problem
There are candidates that can write bug free code for hard problems they’ve never seen before on a whiteboard on an interview, just like olympians can do perfect triple axels while the world watches, it’s not hard to imagine someone can write a recursive algorithm on the fly quite naturally. It’s a talent that signals someone is a good engineer, not a guarantee but a signal. In this game we can’t afford to bring on a bad engineer it can destroy an entire team so yes I expect that at a minimum.
You are being dramatic. It’s not that big deal.
Writing algos shouldn’t equate to a good engineer in all cases. Applications don’t just run on recursion.
On easy/medium - yes, bug free is expected. If you make some small mistakes, you should be able to find them on your own instead of having the interviewer point them out. On hard problems there is some leeway
OP, why shouldn't you be able to write a bug-free solution? By this I just mean that you're able to catch your own bugs and you don't need me to point them out for you. You can think of test cases, no? You can simulate your own code, no? You understand how to prove correctness inductively, no? What's so hard about this?
One reason is that I typically use the computer to write test cases, and debug failures, instead of walking though code etc. doing this on a whiteboard feels painful.
Whiteboard interviewing actually feels outdated. Makes more sense to code on a laptop because no one codes on a whiteboard for real work.
Is it a reject if the interviewer has to point out a bug?
Is this bug free whiteboarding relevent to SET interviews as well, thanks
2024 Presidential Election
Yesterday
2657
Biden ruined America and tech! Tax plans are insane
India
Yesterday
1721
Please vote sensibly 🙏
Tech Industry
Yesterday
2243
So hard being a women in tech industry
Tech Industry
Yesterday
25828
Google doing more layoffs, restructuring including country moves
Tech Industry
Yesterday
796
Chances of meta clearing E5 with screwing up one coding one round and acing all other
Mostly yes. Sometimes I am ok with some bugs.
How do you pick questions to ask in interviews? Leet code?