| Career and opportunities Graduated and need help finding a job? You found the right place! |
![]() |
|
|
Thread Tools |
|
KittyLover
Administrator
|
I'd like to modify Question 5 and propose this question:
There are 5 jars of pills. All the pills in two of the jars are contaminated. The only way to tell which pills are contaminated is by weight. A good pill weighs 10 grams while a contaminated pill in one jar weighs 9 grams while a contaminated pill in the other jar weighs 8 grams. You are given a scale and allowed to make only one measurement with it. How do you tell which jars are contaminated? If possible point out which one is 8 grams and which one is 9 grams. There. Hint: The solution is similar to the answer of the original question where you take a certain number of pills from each jar and weigh them. However, in this question the number of pills from each jar is not 1,2,3,4 and 5 but more discrete. You have to figure that out. To make life easier, you can use this javascript I created to test your answer : http://anatilmizun.homeip.net/pills.php
__________________
|
|
|
|
|
Super Junior Member
|
for luke's question i think instead of 1,2,3,4,5 subs with 2,3,5,11,29. This sequence has the property that the answers produced by 2a+b, a+2b for any a and b from those 5 numbers have distinct answers for all a's and b's and thus eliminate ambiguity
Btw, usually how much time would be given to answer these questions during interview? |
|
|
|
|
Less Junior Member
|
Sorry for the long absense. I have been busy at home and will be flying back to the US in less than a week.
I think not more one minute will be given to answer most of the questions. However, we do not need to answer the questions at once, but do it step by step by reasoning. Explanation and reasoning are more important although a correct final answer will be impressive. Bear in mind that this is only one small session of the interviews. I am very glad that there are many ReCom members here who can answer the puzzles here accurately and are potential employees of top companies. Actually, my main reason for creating this thread is not only to create awareness of such a test in job interviews, but also to encourage and cultivate logic and creative thinking in everyone. I feel fortunate to be given the chance to learn these puzzles and hope that others who have been reading this thread will contribute by sharing interview questions/ puzzles that they have encountered in interviews. Thanks, luke for modifying the question, making it more challenging. I hope others can do the same by posting edited questions that have been asked. Please feel free to email new questions to Big applause again to luke and silverblue for correctly answering the Question 5. Answer for Question 5 quoted from luke: just get one pill from jar 1, 2 pills from jar 2, 3 pills from jar 3 .. continue for jar 4 and jar 5 .. then put all those pills on the scale and get the reading .. the jar with contaminated pill is (150-reading) .. so if the reading is 148 then the contaminated jar is jar 2 ... if it's 149 then it's jar 1 ... if it's 150 then the scale is broken and should be replaced, or all the pills are safe and you are overcautious Thanks for trying! -Hui Lin ^_^ |
|
|
|
|
Less Junior Member
|
I come across a book called "How would you move Mount Fuji" recently by William Poundstone and find it pretty interesting.
I am going to share a couple of questions from the book. Question 6: Source: One of the assignment problems given by Steven Rudich in CMU. Also appeared in the book quoted above. 5 pirates on an island have one hundred gold coins to split among themselves. They divide the loot as follows: The senior pirate proposes a division, and everyone votes on it. Provided at least half the pirates vote for the proposal, they split the coins that way. If not, they kill the senior pirate and start over. The most senior (surviving) pirate proposes his own division plan and they vote by the same rules and either divide the loot or kill the senior pirate, as the case may be. The process continues until one plan is accepted. Suppose you are the senior pirate. What division do you propose? (The pirates are all extremely logical and greedy and all want to live) Happy trying! -Hui Lin ^_^ |
|
|
|
|
Anchors
|
I thought the question used to say that the pirates were splitting gold bars instead of coins and they all have a computer science degrees from CMU?
Not fair for me to solve this - just thought it was one of those questions that kept me awake at night to work on it without avail, but after good long sleep, I'll wake up and say to the world "Ahah!!" and suddenly my world has changed. This is really a classic mind teaser. |
|
|
|
|
ReComer
Administrator
|
Personally I would think that we need to get the votes from at least 2 of the pirates, since if I am the senior, I will vote for it, and that would give the majority of vote.
So, I think a division of 33 each for 3 of the pirates, including ownself will be sufficient. Since, these 3 votes will be sufficient right? but it may be a little bit too cruel... Thanks a lot, Hui Lin for sharing all these questions!
__________________
ReCom.org - The Worldwide Malaysian Students Network. Chen Chow's Personal Blog ReCom.org Wiki PitchYourTalent.com US Applications Workshop & Resources (KK & Kuching - 19th June 2010, Penang - 26th June 2010, Klang Valley - 25th July 2010, 2-day workshops - 7th and 8th August 2010 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|