| > There is a lot of variance in bus sizes, but not enough to put you off by more than an order of magnitude. I didn't know that 'within an order of magnitude' was an acceptable degree of accuracy. > Knowing what kind of accuracy is required is sort of part of the test. The parameters are vaguely specified, so you should know that you're looking at orders of magnitude. I don't see how I would know that. I would just assume it was a stupid question. >> I can just say 'two thousand' and that's a good enough answer. > That would fit in a large duffle bag. If you told me that you thought you could only fit 2000 golf balls in a double decker bus, I would assume that you either put zero thought into answering the question, or that you did not have a good grasp of how to estimate things. You're right that I didn't put much thought into it. But perhaps that's all the thought this problem requires. > The interviewer wants to know that you can give sane estimates based on rough calculations. As the article explains, there are many, many situations where a programmer needs to be able to do this kind of thing. It's not about "seeing how you think". It's about seeing that you can think – at all – about estimation problems. There's nothing to think about. It's not a well-formed problem. The interviewer is going to see me putting on a show, and all they'll see is that I can act. |
I don't mean this as an attack against you, but your response to this is exactly illustrative of why it's a useful interview question.