Google Interview Question for Software Engineer / Developers






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

Mini-Max Algorithm

- Anonymous February 12, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

define "perfect" move
if that's coded and working, then the rest is simple

- Anonymous January 09, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

BDD is the way to do it

- dexter January 09, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Draw a tree containing all the moves of self and opponent. From all the leaf nodes Do a back tracking to current state, considering everyone will make a perfect move, avoid all the redundant paths for trivial cases, and calculate the possibilities.

- Brij January 31, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

int check(int i,int j,int user)
{

if(ttt[0][j]==user && ttt[1][j]==user && ttt[2][j]==user)
return 1;

if(ttt[i][0]==user && ttt[i][1]==user && ttt[i][2]==user)
return 1;

if(ttt[0][0]==user && ttt[1][1]==user && ttt[2][2]==user)
return 1;

if(ttt[0][2]==user && ttt[1][1]==user && ttt[2][0]==user)
return 1;

return 0;
}

- Anonymous February 05, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

Look up table

- me January 06, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

bakwaas

- aunty no. 1 January 09, 2011 | Flag
Comment hidden because of low score. Click to expand.
-2
of 2 vote

gadha

- aunty no. 1 January 09, 2011 | 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