4 ms·
Would this be something you'd do in a real-world situation? Or would you question the requirements and the need for such a feature? I'd be doing the latter, so
by batasrki 17y ago
Would this be something you'd do in a real-world situation? Or would you question the requirements and the need for such a feature?
I'd be doing the latter, so why should I have to behave differently during an interview?
- ph0rque 17y agoI agree with you, but an interview is not quite "the real world", which is something that all the parties involved realize.
- batasrki 17y agoThat is, I think, the problem with posing a question like this. I can only speak about what I'd do. This question would kick my mind into "real-world" mode. I'd want to compare alternative approaches and generally talk it out. If this is not what the interviewer wanted, they'd be better served by asking a slightly more fantastical question that would still show problem-solving skills. Also, the interviewer should qualify the question by saying that "this isn't a real world situation, I just want an algorithm". I don't know how someone would react to that situation.