nadeemshafi9 Posted June 14, 2007 Share Posted June 14, 2007 hello guys interviwer question plz help You have 10 piles of coins containing 10 coins each, 9 piles have 1 gram coins and the 10th pile has 1.1 gram coins. By using the electronic scales only ONCE, how do you find the 1.1 gram pile ? thanks Quote Link to comment https://forums.phpfreaks.com/topic/55643-problem-question-3/ Share on other sites More sharing options...
Orio Posted June 14, 2007 Share Posted June 14, 2007 You put 0 coins from the first pile, 1 from the second, 2 from the third, ...., 9 from the tenth. Then you check the number after the point- if it's 0 it's the first pile, if it's 1 it's the second, ...., if it's 9 it's the tenth. This riddle is well known. Orio. Quote Link to comment https://forums.phpfreaks.com/topic/55643-problem-question-3/#findComment-274941 Share on other sites More sharing options...
nadeemshafi9 Posted June 14, 2007 Author Share Posted June 14, 2007 it was my first interview in my life, and the guy asked me this, for a asp.net role Quote Link to comment https://forums.phpfreaks.com/topic/55643-problem-question-3/#findComment-274945 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.