Work in HR? Unlock Free Profile

Empirix Senior Software Engineer Interview Question

I interviewed in Bedford, MA and was asked:
"1 different weight object out of 8, how to find with least measurement."
Add Tags [?]

Part of a Senior Software Engineer Interview Review - one of 5 Empirix Interview Reviews

Answers & Comments

of 0

weight 3 objects against 3 objects ...

- Interview Candidate on Mar 25, 2009
of 0

This tests that you understand a decision tree, and the notion of a binary sort. Divide the group in to 4 x 4. It is known in this example that an odd weight exists so there is no need to measure those, it will be unbalanced. Chose one group randomly and divide into 2 x 2. Measure these against each other. If they balance reject this entire group of 4 and use the other group of 4 and repeat. If they don't balance chose one group of the 2 x 2 randomly and divide into 1 x 1... At most 3 measurements because 2**3 = 8

- Furd on May 29, 2009

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.