5 ms·
Asking "how would you estimate the number of cars sold in a year?" is not a brainteaser. It's an estimation / market sizing question. You can deduce a reasonabl
by gaylemcd 13y ago
Asking "how would you estimate the number of cars sold in a year?" is not a brainteaser. It's an estimation / market sizing question. You can deduce a reasonable estimate from the population size and other assumptions.
A brainteaser is something like "A man pushed his car to a hotel and lost his fortune. What happened?" That's a brainteaser -- and nothing Google would ask.
- Zikes 13y agoHe's playing Monopoly! So, do I get the job?
- RogerL 13y agoIs there anyone that have read one of the readily available interview books that can't answer one of those estimation questions? I'm sure the answer to that question is 'yes', but I am also sure that their utter inability to prepare for an interview or reason on their feet will be discovered in the interview by other means.
- proksoup 13y ago"How would you estimate the number of cars sold in a year?" This boggles my mind. Where? For what purpose? Is the expectation that the candidate googles that question? I would google lots of different things until I found some answers (car manufacturers sales reports from car magazines, news articles that may have the answer, literally for the phrase "number of cars sold in a year" etc, etc). If you want me to talk through it, it's just mind numbing making asinine assumptions. Market sizing? Obvious assumptions? What? I can't understand how anyone can say with a straight face that that question is straight forward and not ambiguous. The ambiguity is what makes these google interview questions brain teasers, to me at least. But that's probably the last item in a list of reasons why Google wouldn't hire me :)
- gaylemcd 13y agoIt's okay that it's ambiguous. You can ask questions, like whether or not they're including motorcycles and buses. The point is not to get the right answer. It's to deduce a reasonable answer that's in the right ballpark.
- token_female 13y agoI think this does a good job of illustrating what a good answer to this kind of problem is and why it is not a stupid question to ask at an interview: http://what-if.xkcd.com/4/ http://what-if.xkcd.com/4/ > First, let’s start with wild ballpark approximations. This is an example of what might go through my head before I even pick up a calculator, when I’m just trying to get a sense of the quantities - the kind of calculation where 10, 1, and 0.1 are all close enough that we can consider them equal: > I can pick up a mole (animal) and throw it.[Citation needed] Anything I can throw weighs one pound. One pound is one kilogram. The number 602,214,129,000,000,000,000,000 looks about twice as long as a trillion, which means it’s about a trillion trillion. I happen to remember that a trillion trillion kilograms is how much a planet weighs. [illustration showing that a trillion is visually approximately one half of one mole] > … if anyone asks, I did not tell you it was ok to do math like this. > That’s enough to tell us that we’re talking about pile of moles on the scale of planets. It’s a pretty rough estimate, though, since it could be off by a factor of thousands in either direction. Anything general I could say has already been said in this thread and others (it's to see how you think about the problem, not about the answer, etc.), but for me it was seeing some examples like this one that finally made me get it.
- gohrt 13y agoConsider the Google engineer who implemented the OneBox feature that answers "how many cars are sold in a year?" How did he do it? Consider the Wolfram Alpha engieer who implemented the same feature. How did she do it? (It becomes an interesting question, eh?)
- proksoup 13y agoBut they didn't? Google doesnt answer it remotely close to what I find by searching deeper with each. It's so ambiguous at the google search engine can't answer it.
- pisarzp 13y agoThe purpose is to see how you break down the problem. It's all about applying MECE (Mutually Exclusive, Collectively Exhaustive) methodology. Usually for this type of questions you don't really even need to say the numbers, just clearly outline your though process.
- DanBC 13y agoThe ambiguity is what makes it relevant to search. What does a user mean if they enter [how many cars sold in a year?] The ambiguity shows that the specific answer is less interesting than showing your working; having the discussion about how to get an answer.
- proksoup 13y agoThat's more what I was hoping for, thanks :) I wonder what internal Google has explored along the lines of prompting the user with clarifying questions. Like Google Suggest and Spell Check exhibit the level of intelligence needed I think.
- sjs1234 13y agoAmbiguity is something a programmer needs to deal with at work. Riddles are not. Open ended questions are exactly what you want to use to evaluate someone. Riddles fail because there is an expected answer, not because the form of the question is ambiguous. Some coding questions as asked in interviews are actually riddles in practice because the interviewer is unskilled. Those 'coding questions' are worse than the obviously bad riddles because it is harder to tell that the feedback is slanted.
- ChuckMcM 13y agoI got asked the cars sold in a year in California question. I answered by saying I would look for a car that was new two years ago, and one that was new this year, and then difference the license plate numbers and divide by 2. Took the interviewer a while but they finally figured it out.
- Pwnguinz 13y agoWhat do you mean by 'difference the license plate numbers'?
- gohrt 13y agoChuck is assuming (reasonably) that license plate numbers are assigned in sequential order to all new cars. So if 1000 cars are sold in a year, maybe he'll see plate #267 from Year 0, and plate #1796 from Year 2. 1800 - 300 / 2 = 750 cars per year, close enough.
- ChuckMcM 13y agoExactly, in California private plates are of the form /[0-9][A-Z]{3}[0-9]{3}/ you can think of it as three digits base 10, and three digits base 26, one digit base 10. There are letter combos they don't use like SUX or FUX etc but each of those only reduce the pool by 1000 vehicles for each banned letter sequence so overall a relatively small hit on the estimate. My wife pointed out you can be more accurate if you include the month of the renewal in the registration (its on the plate as well) to get total months in your sample.