2 ms·
That's only because the interview process is being run by people who don't know what they're doing. They may be able to code, but they're amateurs at interview
by AnimalMuppet 6y ago
That's only because the interview process is being run by people who don't know what they're doing. They may be able to code, but they're amateurs at interviewing.
You could do the exact same thing, but with sanity. When you ask what they do without the modulo operator, you're looking to see if they just have a cookbook method memorized, or if they can handle having to adapt it. You don't have a "right" answer - if their answer works, it works. If it's kludgy, that might be a bit of a mark against them, but less so if they know that what they did is kludgy. And so on.
It's not all like what you describe. There are people who can actually interview.