Google Interview Question for Software Engineer / Developers


Country: United States
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
2
of 2 vote

Hey Google told me they stopped asking design questions a few weeks before my interview. My interview was in 09/2013. When was this question asked?

I was not asked any design questions in my interview either. Btw, I applied for the Software Engineer in Test position and was offered the Test Engineer position. I did not accept.

- BP January 30, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 votes

Last month. I think they are still asking OOP design questions, so is Amazon actually.

- Guy January 30, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Strange. May be my recruiter did not have the correct information then. Thanks for the clarification btw. And apologies for commenting like this. I just wanted to make sure what I was told was correct and I wanted everybody to be aware of it. Apparently, I was given incorrect information. Thanks.

- bp January 31, 2014 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

It's all good. I think it's still very common for oop design questions to be asked during interviews, although I think a oop design for a chess game is a joke since not everybody knows how to play chess. I havent played chess once in my life.

- Guy January 31, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

True. That's one thing that crossed my mind too, when I was working on this question. :)

- bp February 01, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I don't actually think knowing the exact rules matters that much. You can always leave a method make_move() and I highly doubt you will be asked to specify the implementation for each type of pieces.

- Vladimir February 06, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This is what I'm talking about:

class Piece():
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def make_move(self, new_x, new_y):	
        pass

class Queen(Piece):
    def make_move(self, new_x, new_y):
        #specific move validation for Queen
        if self.x - new_x == 0 or self.y - new_y == 0 or abs(self.x - new_x) == abs(self.y - new_y):
            self.x = new_x
            self.y = new_y
            return True
        else:
            return False

- Vladimir February 06, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

```````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

- Anonymous December 06, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More