views:

14629

answers:

11

I am preparing for an interview with Google (Mountain View) I was wondering if anybody could share some of the questions and experiences.

I have been told that they ask both brain teasers and coding/algorithm questions this time

A: 

Google query "google interview" yields a lot of questions and stories about interview at Google :)

aku
+4  A: 

I remember reading somewhere that interviewees at Google have to sign an NDA about the questions being asked. So how do you expect people to tell you what questions they have asked?

Anyway, as aku said, search the Internet.. you might not find specific questions, but you will get to know in which areas they ask questions from...

All the best!!

Shivasubramanian A
people do break NDA's in that level of "secrecy" you know
DFectuoso
I, personally, never signed any NDAs.
A. Rex
+22  A: 

Steve Yegge's Get That Job At Google is the best resource I know of.

Simucal
Even if your not not applying for a google job, thats still a good read :)
Chalkey
This is an old thread, but they now use pretty much all of "Steve Yegge's" list and send it out to applicants now. Also they now suggest a book http://www.wiley.com/WileyCDA/WileyTitle/productCd-047012167X.html which was great help. They used a question from it word for word for my phone interview with them.
Tim McJilton
+2  A: 

Although not directly related you might want to check this previous discussion:

interview-programming-test-practice

Or this book: Programming-Interviews-Exposed-Secrets-Landing/

melaos
+15  A: 

Each interviewer is encouraged to think up their own questions, and we have a list of "banned" questions that are too widely known. Also, if you already know about the question it will be pretty obvious to the interviewer, and they'll either make it harder or just ask a different one.

Steve Yegge's advice that Simucal referenced is really good. Basically, know your stuff and don't be too downhearted if you don't get in. (Pretty much everyone I talk to at work says they're the fluke that did get in and shouldn't have done. We all view the recruiting process as a really, really high bar.)

Good luck!

Jon Skeet
Does that apply globally? I mean, sounds preety much like company policy. I was thinking of applying in Brazil, got discouraged for other reasons (including moving to Brazil).
Tom
As far as I'm aware it's company policy.
Jon Skeet
Too be honest I wasn't impressed with the 2nd round interview I had with Google 5 years ago. Prior to the interview they said I would be asked C++ questions and then I was asked several Unix sysadmin type questions that I could google answers to and one problem solving question, a regular expression to validate ip addresses, which is far too hard to get right over the phone. If they'd read my cv, asked questions to my strengths, it could have been different. I mean I have patched libstdc++ at least once so I know something about the language.
sashang
A: 

Hi, I interviewed for the associate product manager position at google, you can read it up here

http://ferozeh.com/Interviews/Google/google.php

A: 

I'm not kidding, when Google conducted interview in our college in Bangalore...

I got very wiered question completely out of scope like "How many buses does local transport corporation own ?"

So, be ready with some local facts

n Best of luck :)

Prashant
That's actually a fairly common style of interview question. The goal isn't to test your trivia knowledge, but rather to see how well you can make a back-of-the-envelope estimate about something. Jon Bentley discusses this in his wonderful book, "Programming Pearls."
Keith Smith
A: 

Take a look on this web site http://google-interview.com Seems they gather all "google stories" mentioned above.

Paul Podlipensky
+2  A: 

I've put together 140 Google interview questions. You might find it helpful.

Check it out: http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html

  • Seattle Interview Coach
Seattle Interview Coach
+4  A: 

I have worked for Google and Microsft and done a ton of these interviews. We just published a book called "Algorithms for Interviews". Me and my co-author have put in 2 years of effort in it and we think the end result is very nice. I'd highly recommend it to anyone who is preparing for an algorithms/coding interview. Also, I'd love to get your feedback on the book at [email protected]

Here is a sample of problems from the book:

  • A triomino is formed by joining three unit-sized squares in an L-shape. A mutilated chessboard is made up of 64 unit-sized squares arranged in an 8-by-8 square, minus the top left square.

    Design an algorithm which computes a placement of 21 triominos that covers the mutilated chessboard.2.

  • The mathematician G. H. Hardy was on his way to visit his collaborator S. Ramanujan who was in the hospital. Hardy remarked to Ramanujan that he traveled in a taxi cab with license plate 1729, which seemed a dull number. To this, Ramanujan replied that 1729 was a very interesting number - it was the smallest number expressible as the sum of cubes of two numbers in two different ways. Indeed, 10x10x10 + 9x9x9 = 12x12x12 + 1x1x1 = 1729.

    Given an arbitrary positive integer, how would you determine if it can be expressed as a sum of two cubes?

  • There are fifty coins in a line---these could be pennies, nickels, dimes, or quarters. Two players, $F$ and $S$, take turns at choosing one coin each---they can only choose from the two coins at the ends of the line. The game ends when all the coins have been picked up. The player whose coins have the higher total value wins. Each player must select a coin when it is his turn, so the game ends in fifty turns.

    If you want to ensure you do not lose, would you rather go first or second? Design an efficient algorithm for computing the maximum amount of money the first player can win.

  • You are given two sorted arrays. Design an efficient algorithm for computing the k-th smallest element in the union of the two arrays. (Keep in mind that the elements may be repeated.)

For more sample problems, you can look here.

Amit Prakash
a shameless plug :-) but that book is so going on my wish list.
Gareth Davis
A: 

I used this one earlier for Google Interview questions Few more good ones are found here as well. http://www.freshersinterviewquestions.com/category/google-interview-questions/

Brian