Interview Question for Software Engineer / Developers


Team: SDE
Country: India




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

What we have to optimize on? There can be multiple solution to this problem. Like one solution can 4 2x2 squares etc.

- deadman September 15, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

The question says you can use only triangles & parallelograms.
Think of this as lining up triangles on an edge of a square on either side and the two parallelograms in-between to form the square.

- gixxer6er September 20, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

n=number of people in room.
handshakes= sum from 0 to (n-1)
in general the sum of all integers up to an integer 'x', sum = x(x+1)/2
Let the inter x = n-1:
handshakes=66=(n-1)n/2
132=(n-1)n
you can use quadratics or if you know up to your 12 times tables you see that the anser is 132=11*12
and so n=12.
There are 12 people in the room

- nerdalert October 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I don't see the point of this question. Is the problem to make all pieces different? Otherwise I would say there are two optimal (though optimal is not defined) solutions: 4 2 x 2 squares, or 4 triangles created by the two diagonals. Note to gixxer6er: squares *are* parallelograms.
Is this supposed to be a programming question?

Sheesh. Inadequate customer specifications! :-)

- purplediane October 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

i think the customer specified properly but the bussiness analyst is incompetent as he can't clearly restate the problem statement :P

- The Artist November 27, 2012 | Flag


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