126 points · by BarkMore · 15y ago · 88 comments
At first I was like 'wow, Google must be populated with demi-gods'. Then I spoke to some Googlers off the record and it turns out that those interview questions have little to do with the reality within Google.
Not that Google isn't a company lousy with smart people. They are.
And it's not that Google doesn't work on hard problems. They do.
It's just that the interviews are an extremely efficient dud filter, probing you about stuff that even at Google's you won't be working on 5% of the time (if at all).
In any highly skilled profession, 95% of the time someone with very little of your skill could do your job. The valuable part is that you can also be counted on for that 5% as well.
Most of my time at Google hasn't involved any substantial theoretical work. One time though, I did have to come up with a algorithm for computing connected components that could run in reasonable parallel-time in mapreduce. The resulting algorithm ran in log n parallel time passing n log n messages over its lifetime. (This probably is in the literature somewhere considering that a coworker and I had to solve it for unrelated reasons and independently came up with the same thing.)
I'd like to expect my coworkers to be able to do that sort of work in a domain that they're familiar with, because it takes certain problems and moves them across the boundary from impossible to possible. Working at Google scale means that you'll inevitably have to solve some problems that have never been solved before, at least until a lot of universities find it worthwhile to build a thousand node cluster for research purposes.
One day it completely stopped dead - usually it is controlled mayhem with the packages and machines running - the silence was deafening - thousands of dollars lost every minute. They brought in the best expert they could find. He investigated and went to a single box in the plant, opened a door, and turned one bolt with a wrench and everything restarted. The plant came back to life. He sent them a bill for $10,000. When FedEx protested the bill - "You just turned a single bolt! Anyone could have done that" - he itemized it and sent it back. They paid him.
Turning a bolt $ 1
Knowing which bolt to turn $9,999http://pinds.com/2007/05/27/knowing-which-screw-to-turn/
http://www.guidancechannel.com/default.aspx?M=a&index=65...
http://www.cs.uni.edu/~wallingf/teaching/agile/sessions/sess...
http://pocky.tumblr.com/post/49520543/knowing-which-screw-to...
A woman walks up to Picasso, later in life, as he sits at a cafe table. "Could you draw me a sketch?" she asks, thinking she'll make a quick buck. "I can pay you for it."
Picasso shrugs, says "sure", and quickly scratches out a little something on a napkin. "That'll be $10,000," he says.
"$10,000! But it only took you a few seconds!"
"Just the drawing of it took a few seconds," Picasso replies. "Learning how took my entire life."
In the russian versions of the story the expert usually hits the object (server, or the machine that stopped working) with a huge hammer in the carefully identified spot. The result is the same though - the system resumes working as intended.
But, well, that's just the cultural differences in the ways the things are usually being fixed.
A woman walks in to the studio of Yves St. Laurent:
"Oh Yves, you must help me, I have to go to a ball and I need a hat that's both original and chique..."
Yves sets the lady down on a stool and proceeds to drape ribbons around her head.
After about 20 minutes of this he pronounces the result done.
The woman asks for the bill and is presented with a 2500 Francs invoice.
"What is this? You charge me 2500 Francs for this?"
Without a word Yves St. Laurent unwinds the ribbons and stuffs them in a small plastic bag which he hands to her.
"The ribbons my dear, you can have for free".
Finally, the AF hired some old mechanics out of retirement who used to work on them, and they promptly had them running to spec. Turns out there's a lot on how to tune them that was never written down.
But, if you have learned a little about indexing and data structures, you'll think "Yeah, you can probably generate k suggestions in something like O(k log n), and you can probably predict the next few characters that will be typed in, so that a lot of data could be cached on the client. This doesn't seem impossible", even if you can't come up with the exact algorithm right then and there.
That means you can design something like suggest or instant without getting stuck on whether it would run fast enough.
Or, conversely if the problem calls for solving an NP-hard problem, then you should get stuck on whether it can run fast enough and whether there is some way to approximate the answer instead. (Did anyone else check to see if you could get Google Maps to solve Traveling Salesman when they first added intermediate destinations?)
I like doing stuff like that so I wasn't upset in the least, but I can understand why many people would find that scary and I certainly think Google's interview process is more extreme than others'. I've interviewed successfully with Goldman Sachs, Amazon, and Microsoft (among others) so that's to whom I'm comparing them.
That whole “Google cares about GPA even for people
years out of college” thing? I supposed I can’t
speak for every hiring committee, but I never
remember my hiring committee discussing the GPA
of a professional candidate. For that matter,
we were never even given a candidate’s GPA unless
he/she elected to put it on their resume.
This doesn't jive with what I know of the process. Tom Galloway's response in the comments, however, does: GPA/SAT/GRE: Perhaps not in Engineering so much, but
a *lot* of non-Eng HR and HCs did do cuts based on what
school someone attended and/or their GPA and test scores.
And I know for a fact that even Eng applicants who had
been out of school for over a decade were asked for such
on a regular basis. There were a number of us, mostly
older types, who semi-actively campaigned against Google
asking for such from folk who’d been out of school for a
while as we felt it 1) was useless relative to their
actual job performance and 2) it was embarrassing *to*
Google for us to ask for such irrelevant info and gave
up a bad impression/rep.Sounds like wishful thinking to me. At least I wish it were true. I've been involved in a lot of interviews at my company, and I'm the only one who ever asks anyone to write code.
I just got done doing a series of 10 1-hour interviews for contractors for an enterprise Java web application contract lasting about 6 months. Only 2-3 of them could write correct Java on a white board for simple questions. We had three who weren't even close to Java syntax. Code quality seemed to be directly relational to algorithm quality, in that those with better syntax also knew how to solve the algorithms best, and those with terrible syntax were way off on the algorithms.
Up until we asked these candidates to write code on the board, a few of them sounded like great hires. They could rattle on about design decisions and enterprise web application stacks, about configuration and organization. But when it came to the white board at least one of them just stood there and left it mostly blank.
Some of the positions here have had interviews where the candidate is expected to write code but only one, if even that, interviewer asked to see any code. And even then the managers don't seem too worried when I tell them the person can't code, because everyone else likes them so much.
Akin to people no longer knowing how to find their way without a navigator in their cars.
I am more inclined to give people a chance to work at a terminal (with internet access) instead of a whiteboard.
If the candidate draws a blank writing code on a whiteboard, that indicates they have poor whiteboard skills - which is a pretty important skill to have in a team environment.
I'm going to be writing code for money and they don't want me to prove that I can before hand? That's like hiring a "farmer" from the inner-city.
if I find said thing promising, i'd usually came back some weekends later and do something more complex, but again, basically junk.
oh, and did i mention nothing looks finished?
Now, take anything i code behind the closed doors at my employer or i contribute to some open source projects. It will shine like nothing you will ever see in my github or googlecode or such.
Would you consider the primary output and product of your company software? Perhaps you are just working in a position creating software in a non-software company.
Personally, if I could only ask a candidate one question, it would be something that involved writing code. Too many times I've seen candidates with impressive resumes, technical knowledge, or conversation skills, fail miserably to implement trivial (e.g. stricmp) functions.
Good ones write good code; the ones we shouldn't have hired write poor code or don't code at all. As for how to tell the difference, I pay a lot of attention to candidates' questions, comments, and attitude while writing code. That part carries over pretty directly to how they do their real job and how pleasant they are to work with. As for quality of code, my rough impression is that the more meaningful details they take care of in their whiteboard code, the more productive they are. Getting syntax and library function names right or wrong doesn't tell you much (except how recently they wrote code that used that syntax or those functions) but getting other details right does matter.
Which details matter is a matter of judgment. My attitude is that some errors are trivial but should be corrected if attention is called to them. For example, off-by-one errors in array indices are easy to miss on a whiteboard if they only affect one line of code or just make the output a little incorrect -- that's no big deal -- but when a candidate gets stuck or confused because of an off-by-one error he made a few lines up, he should be able to figure it out, correct the error, and correct any related errors.
Good things to watch out for (besides asking good questions to make sure the problem is well specified):
1. The candidate doesn't start writing a complete solution without having a decent idea where it's going. If he doesn't see a solution immediately, he takes some time to understand the problem, possibly working an example by hand, sketching out possible solutions, or talking through the problem verbally.
2. The candidate draws logical inferences about his own code. "Oops, this function signature is wrong, because in these two cases the same arguments are passed, but the output needs to be different. I need to pass in more information."
3. If the candidate takes the wrong path, he backs up as far as necessary to get back on the right track. He reminds himself of the problem statement and reevaluates his decisions up to that point.
Bad things to watch out for (besides having a bad attitude or failing to ask questions):
1. The candidate launches right into coding a solution without understanding how the problem can be solved. (Those candidates usually end up boxing themselves in, so they really better be good at backing up and starting fresh.)
2. The candidate spends a long time trying to impossible code, such as trying to implement the body of a function when the arguments he has specified for it don't contain enough information.
3. If the candidate takes the wrong path, he doesn't back up far enough to recover. For example, he doesn't question anything he decided more than five minutes ago, so he starts to treat his initial steps in solving the problem as if they were part of the problem statement. (I have seen the opposite mistake also, where a candidate encounters a problem that is clearly local to a small part of his code, but he interprets it as invalidating his whole approach. That mistake is usually just a mistake; people are going to make mistakes under pressure. It doesn't show a lack of intellectual flexibility like the opposite behavior. Depending on the circumstances I might interpret it as a lack of persistence, but usually not.)
"One subject in Outliers is what Gladwell calls the "mismatch problem," which refers to his idea that the qualifications which people look for/companies require in candidates when hiring often do not necessarily have any correlation to successful job performance - and often leads to poor hiring decisions."
He's also written on the problems in scouting athletes & picking teachers in the New Yorker.
From the other side of the table, the firm I'm with now only has a pseudo-code step in the interviewing process if and when I run it. The director for my group doesn't even put the question forward if I can't make an interview appointment. Even though he agreed that it was a great tool that did filter out a couple duds that might well have been hires without it, and likely would have filtered out the one spectacularly bad fit that made it through before my time.
So grades matter, but not forever...
edit: typo
For example, take this one: "A man pushed his car to a hotel and lost his fortune. What happened?"
Come on, no one was asked that. If even if they were, the hiring committee would take one look and that and throw out the feedback.
As for some of the other questions, like "How much would you charge to wash all the windows in the Seattle?" (1) This question seems fishy, just because it's about Seattle. Yes, Google has a Seattle office (where I worked), but it has very few PMs. It's far more likely that this question was asked at Microsoft. (2) This question is actually very standard for consulting question. It's really a totally fair problem solving question, as the accuracy of your final answer doesn't matter.
The Business Insider article is designed to be link bait - reprinting fake questions and building off the "OMG IT'S GOOGLE" stuff. The legitimate questions on this list are actually totally normal for tech and consulting companies.
Where my experience does slightly differ than the article, was their use of your academic records. They didn't care about my GPA, mostly because I dropped out of college very quickly and I don't have a GPA to care about, but they did care I didn't have a college degree and used that to justify the offer I was given.
"Explain the significance of ‘dead beef'" is a perfectly valid, if somewhat unimaginative, technical question.
Not catching the usage of a poisoned pointer on first access creates enormous amounts of fun - normally preventing any meaningful analysis of dumps.
Lastly (and I am completely going on a limb here, without any concrete information), this could also be used to gauge team/culture fit Google. This is a good way to see if you'll be a fit for a team that spends a huge amount of time finding and fixing low-level bugs: it's fun to read about infrastructure that Google has built, but the actual process of building it may be very frustrating to some. Not being a fit for such a group doesn't imply rejection, it could simply mean you're brought back to a different round with another set of people.
If you want to find engineers with talent then you need to do a lot more leg-work in plumbing their knowledge, experience, and skill than merely ticking off a checklist of shibboleths.
P.S. Personally I love hacker jargon and lore, I like knowing about scratch monkeys, core memory, the usenet cabal, and even 0xDEADBEEF, but I wouldn't take ignorance of those things to translate to ignorance of engineering fundamentals or of passion in software development.
So if some questions (like the "why are manhole covers round") are definitely fake, and others seem very weird (like the dead beef one), isn't is more likely that that question is fake too?
The pattern might be 0xDADADADA, 0xCAFEBABE, or 0xDEADBEEF. But it seems perfectly reasonable to ask what one might use this for. In fact, you'll find 0xDEADBEEF in the man page for libgmalloc.
(and all of the replies are about "raw memory" debugging... wtf)
1. Given n number of computers with x number of numbers stored. Find the median of all the numbers distributed among those computers. Catch is that no single machine can store all the numbers. (Hope this is clear.)
2. Given a text file of logs, write a threaded program that scans the logs and produce some statistics. (My answer was to create n threads that reads every nth line.)
None of those brain teasers were asked of me.
A good source for the history of these questions and interview style, as well as a bevy of sample questions, can be found in "How Would You Move Mt. Fuji?" http://www.amazon.com/Would-Move-Mount-Microsofts-Puzzle/dp/...
Here are some programming contest questions from 2005 from an Atlantic Canada programming contest http://projects.cs.dal.ca/apics/contest05/
Anyone know the extent of this?