Bloomberg LP Interview Question for Financial Software Developers






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

weight the coins in 3-3-2 .
Weight 3-3
if equal --- >means heavy one is from rest 2.
weight them and find heavier one. (Total Weighing require 2)
if (two 3 coins pile are not eual)
move with the heavier pile.
weigh the two coins from them
if they are equal.........3rd one is heavier.
else the hevier one ........is heaviest.

In anycase weigh require 2

- Rajul August 19, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Rajul's answer is correct. He covered all d cases. there is no worst case left now.

- Anonymous March 04, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Anonymous is the algorithmic guy .Divide and conquer ...

- Anonymous March 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Rajul's answer is correct, 2 weighings. PERIOD.

LOL at the comment claiming Rajul's solution to be a heuristic. Worst case 4? even after reading Rajul's answer? LOL!

- T March 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 0 vote

Divide and Conquer!
Club 4 each and compare the two groups.Eliminate the lighter group.
Break the heavier group in two groups of 2-2.Compare and Eliminate again and again.

- Anonymous November 04, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 0 vote

Its a binary search,rajuls answer is a good heuristic but in the worst case i think it will again need 4 comparisons.

- Anonymous February 05, 2009 | 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