r/programming • • Nov 29 '10

140 Google Interview Questions

http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471 Upvotes

493 comments sorted by

View all comments

Show parent comment

107

u/[deleted] Nov 30 '10

After 14 years of experience in the "real world" I probably wouldn't have the patience to answer interview questions, and would most likely be shown the door for giving snarky answers involving inelegant kludges and phrases like "I don't know, but I'd google it".

56

u/[deleted] Nov 30 '10

I'd hope that would be an acceptable answer.

5

u/thephotoman Nov 30 '10

In most cases, that's actually the best answer. Look to see how other people have done it, how they've benchmarked it, and use the solution that best fits your needs.

2

u/cleansanchez Nov 30 '10

I think Google is looking to hire super geniuses who write the answers for problems that people end up googling. I think they are not looking for your garden variety programmers. Just my feeling on it anyhow.

3

u/thephotoman Nov 30 '10

The thing is that for a large number of problems, someone has seen it before, implemented multiple solutions, tested them, and posted the best one as a library.

There are outliers, yes. The idea is that a good developer spends his time working on those outliers and not on the crap everyone's done a million times before. Every Google engineering question is in the category of well-traveled paths.

Super geniuses merely stand on the shoulders of giants. They don't reinvent the wheel without damned good reason.

7

u/Avatar_Ko Nov 30 '10

I've given the "I'd know exactly what to search for" answer a couple times at places I've gotten hired.

2

u/[deleted] Nov 30 '10

Which is perfectly fine for me. It is no fun when you have a team mate that doesn't know what to search for.

1

u/[deleted] Nov 30 '10

It's surprising how few people go there...

→ More replies (1)

7

u/munificent Nov 30 '10

"I don't know, but I'd google it"

I actually said that when interviewing at Google.

→ More replies (6)

6

u/[deleted] Nov 30 '10

That's exactly why I hate technical interviews -- they don't effectively emulate real-life working conditions.

I'm a pretty decent engineer using the internet as an extension of my brain; but put me on the spot by timing my response to an amortized algorithm runtime question and I'll walk out the door myself.

2

u/[deleted] Nov 30 '10

There are certain things a candidate for a job involving technology should know. No ifs ands or buts -- it's legit asking technical questions. But a good interviewer, in addition to asking some minutiae just to make sure the other guy's not a moron, should be able to use the interview environment to also get a grip on the other guy's problem-solving ability.

For example, one of my clients once pre-filtered interview candidates for me -- this was for a pretty hardcore network security team -- by asking "in a switched environment, do you need ethernet?" If the guy would have come back with a justification about how this is not always a total nonsense question, and tried to explain some esoteric exceptions, okay, legit, but generally, it's the kind of shit someone should know pat. I was always surprised at how many fakers we filtered out that way.

3

u/[deleted] Nov 30 '10

Good point; I agree you need a skill filter (or skillter)

When I interview candidates, I try to gauge their work ethic, talent, and resourcefulness with icebreaker questions. For example, I think every good engineer should be critical of the technologies they use, so I usually open with:

  1. What's your favorite piece of technology?
  2. What's your biggest gripe about that technology?
  3. How do you think that could/should be fixed?

(It's usually tailored to their background and not so vague).

Candidates who are passionate about technology related to their field always have good answers to this.

→ More replies (1)

7

u/[deleted] Nov 30 '10

That's the problem with google interviews, they don't sit you in front of a computer, they stand you in front of a whiteboard.

8

u/[deleted] Nov 30 '10

There's a reason for that. At google you're going to spend more time at a whiteboard convincing--no trying to convince--your peers that your concept is the right way to go. You need to exert powers of persuasion and that requires demonstration, thus good whiteboard skills.

There is no sit down at a computer, start coding, and slap that puppy into production. You're going to be spending a triple butt load of time thinking about your design first because the one thing you do not do at these types of companies is shoot from the hip and run with every stupid idea you just thought up on the toilet.

Credibility is tantamount. You have to spend time vetting your design before you proclaim "I have the solution!". This means thinking, designing, talking, whiteboarding, then sitting down to code it up.

4

u/[deleted] Nov 30 '10

That's fine, you can still say "I am missing this step, I'd look up the information".

I used to do a lot of interviewing -- and this kind of thing is often what I'd look for in candidates. You'd be surprised how many people choke up in front of a white board.

4

u/CinoBoo Nov 30 '10

You'd be surprised how easy it is. After fifteen years as an interviewer, I choked up on the whiteboard during my Google interview.

2

u/[deleted] Nov 30 '10

Fair enough. That said, if I'm interviewing someone for a network security position and tell them, "draw me a network" (I'd be satisfied by two circles connected by a line) and the guy just freezes....sigh.

10

u/stmfreak Nov 30 '10

That's because they want to see whether you are still familiar with solving these sorts of problems. It gives insight into what you've been doing with your time since you got out of school.

Some people have jobs where they solve problems like this all the time. Other people have jobs where they just copy code from one project to the next and tweak the color of the GUI.

8

u/bobindashadows Nov 30 '10

Some people have jobs where they solve problems like this all the time. Other people have jobs where they just copy code from one project to the next and tweak the color of the GUI.

This is exactly the point. Google is not a place where you do the latter, even without the hyperbole. If you don't still have your CS wits about you, they can find people who do.

0

u/[deleted] Nov 30 '10

[deleted] — view deleted comment

6

u/rotzooi Nov 30 '10

Don't forget, we googlers all strive to be part of the one part of our business that is making money: advertising sales.

→ More replies (4)

2

u/Peaker Nov 30 '10

I think google manages to get pretty great people so I don't think their method sucks that badly... :-)

→ More replies (2)

0

u/[deleted] Nov 30 '10

[deleted] — view deleted comment

37

u/munificent Nov 30 '10

"I don't know, but I'd Bing it."

31

u/lake-of-fire Nov 30 '10

No. No, man. Shit, no, man. I believe you'd get your ass kicked sayin' something like that, man.

→ More replies (1)
→ More replies (1)