Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

IT Professionals

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    « OpenOffice 3.0 is now availableOffice Inspiration Quotes »
    comments

    Google Interview Questions

    by SQLDenis on Oct 08, 2008 in categories Ethics & IT

    Google Interview Questions

    So the economy is really bad and your job might be on the line, Google is always looking for new talent. Here are 2 questions that they asked a friend of mine. What would you answer?

    1. You have been shrunk down to the size of a nickel and tossed into a blender. You are told that the blender blades will start in 60 seconds.What would you do to save your life?


    2. Design and describe a system/application that will most efficiently produce a report of the top 1 million Google search requests.These are the particulars.

    * You are given 12 servers to work with. They are all dual-processor machines with 4Gb of RAM, 4x400GB hard drives and networked together.(Basically, nothing more than high-end PC’s)

    * The log data has already been cleaned for you. It consists of 100 Billion log lines, broken down into 12 320 GB files of 40-byte search terms per line.

    * You can use only custom written applications or available free open-source software.

    So what do you think, could you answer these questions?

    And don’t forget, if you have any tech questions then don’t hesitate to ask in our forums

    About the Author

    User bio imageDenis has been working with SQL Server since version 6.5. Although he worked as an ASP/JSP/ColdFusion developer before the dot com bust, he has been working exclusively as a database developer/architect since 2002. In addition to English, Denis is also fluent in Croatian and Dutch, but he can curse in many other languages and dialects (just ask the SQL optimizer) He lives in Princeton, NJ with his wife and three kids.
    Social SitingsTwitterFacebookLinkedInHomePageFlickrLTD RSS Feed
    19189 views
    google, interview, job
    InstapaperVote on HN

    20 comments

    Comment from: Zvrkanski [Visitor]
    Zvrkanski Number 1 is pretty easy

    Go to the center of the axle to which the blades are attached and hold on really tight. Centrifugal force is zero in the center of rotation
    10/08/08 @ 06:52
    Comment from: Impal3r [Visitor]
    Impal3r Question 1:
    I would pull out my hair, take off my clothes and would try to jam the motor with that
    10/08/08 @ 06:54
    Comment from: Christiaan Baes (chrissie1) [Member]
    ****-
    Christiaan Baes (chrissie1) Why would I save my life? I'm just a speckle on the face of this earth.

    On the other hand if the boss of google was with me I would save his life.

    10/08/08 @ 07:02
    Comment from: haha [Visitor]
    *----
    haha relevancy is a virtue.
    10/08/08 @ 10:17
    Comment from: RunForrestRun [Visitor]
    RunForrestRun question 1, start running around the inside of the blender. using centrifugal force, i would slowly work my way up and out of the top.

    i have seen videos of people trying to hold onto playground marry-go-rounds as a truck/ATV pulls a rope to get the thing spinning....there is a reason they are some of the funniest things around.
    10/08/08 @ 10:32
    Comment from: ZmrAbdulla [Member] Email
    ZmrAbdulla possiblities..for question 1
    a) I they can shrink me down to the size of nickel then I will run some vb code inside the blender.

    Blender.Timer.Stop()

    b) Why should I worry?? Blender blades can do nothing if I am a piece of metal, Chances are there I damage the blades and the Jar.
    Question 2
    a) I don't want a job in google.


    10/08/08 @ 22:23
    Comment from: shivlee [Visitor] · http://www.interviewhelper.org
    ****-
    shivlee Can we get more questions on the same?
    11/06/08 @ 07:13
    Comment from: interview questions [Visitor] · http://www.interviewquestions.biz/forum
    ***--
    interview questions Hi,
    This is a pretty good attempt to give the most latest questions asked in the interviews. This way the people would always be updated with the questions and the expected answers.
    11/14/08 @ 03:17
    Comment from: tim [Visitor]
    tim how silly .. I would google the answer. geez.
    02/19/09 @ 08:42
    Comment from: phil [Visitor]
    ***--
    phil 1. Lay down, you can fit under the blades if you are a the size of a nickle. (hopefully)

    2. forget that, Gaming rigs for all!
    02/19/09 @ 10:15
    Comment from: jhon [Visitor] Email · http://www.ferozeh.com
    *****
    jhon Hi,
    I interviewed for the associate product manager position at google, you can read it up here

    http://ferozeh.com/Interviews/Google/google.php
    06/25/09 @ 00:04
    Comment from: Naomi Nosonovsky [Member]
    Naomi Nosonovsky Great description of your interview process, I enjoyed reading it.
    11/26/09 @ 00:27
    Comment from: topconlacj [Member] Email
    topconlacj Hi,

    Thanks very much for this comment. It help me to think about my ideals.

    Tks again and pls keep posting.
    12/08/11 @ 07:11
    Comment from: Marty Gipson [Visitor]
    Marty Gipson When you look into a fully loaded, running blender, it makes a whirlpool with a toroidal flow that descends in the center and ascends on the outer portions (nearer the walls of the blender vessel).

    So, do whatever it takes to get yourself as high on the outside wall of the blender vessel as possible, with as much surface area as possible, to aid, catch and utilize that upward flow at the moment the blender starts.

    If the blades are long, and assuming you have had the presence of mind to start counting seconds from the moment you were informed of your putative last minute, I suggest standing on the outer tip of one blade and counting to 59 before jumping at the glass, and spreading out your appendages, fingers and toes, and any garments as much as you can.

    Otherwise, just get as far up on the glass wall as your sweaty palms allow.

    You will only be aware of success.
    01/03/12 @ 16:28
    Comment from: Niranjan [Visitor]
    Niranjan 1)I will turn myself into a nickel coin and sacrifice my tail.
    01/19/12 @ 09:25
    Comment from: Zenzen [Visitor]
    Zenzen Nr. 2 is a textbook example of a MapReduce. So I would either use their internal one (had I gotten the job ;)) or Hadoop. Creating an application which could be run in a cluster of 12 CPUs would be a breeze and the rest would be simply the logic behind report generation.

    From what I've seen knowing a thing or two about their GFS and MapReduce is a must if you're applying for a SE position.
    01/20/12 @ 17:57
    Comment from: itoctopus [Visitor] · http://www.itoctopus.com
    itoctopus I don't understand, how will answering these questions reveal to Google that you're a good programmer? The first question is obviously written by someone who has some serious issues...
    01/21/12 @ 07:47
    Comment from: me [Visitor] Email
    me #2 One solution is use unix sort and uniq. So on each server you put an 26 GB file. Sorting in memory is the fastest so you use unix split to make the files somewhat less than 4GB. Then sort each file. Concat the files and do sort so there is one file left. That will be the slowest part. Now you can do a unix uniq to get the counts. Then you move the top 1M results with the counts from each server to one server. Sort by search terms, sum counts per unique search term, sort by count. Do a head -1000000 on the file.
    I had an interview at google and had a similar question but they asked for the median number from the log recording search hit numbers or something. The interviewer didnt like my answer :(
    01/21/12 @ 08:41
    Comment from: Javin [Visitor] · http://javarevisited.blogspot.com
    Javin Good questions.
    01/22/12 @ 01:11
    Comment from: anne [Visitor] Email
    anne 1) I'll stay in one of these places at the bottom where I always find raw stuff left, when the blending is over...
    2) Never let so much data pile up before you work with them! Before you get a result, data will be obsolete.
    08/25/12 @ 14:52

    Leave a comment


    Your email address will not be revealed on this site.

    To mislead the spambots.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)