Microsoft Interview Question: 1. How do you test a key boar... | Glassdoor

Interview Question

Software Development Intern Interview Boston, MA

1. How do you test a key board? 2. Given nine items and one

  of them is heavier than the others, how do you find the heavier one using a scale just twice?
Answer

Interview Answer

1 Answer

4

For Question Two: Split into 3,3, and 3; ->a,b,c
if(a==b)
split c into 1,1,1;->d,e,f
else
split the heavier into 1,1,1
weight it
if(d==e)
return f
else
return the heavier one

Anonymous on May 31, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.