Interview Preparation Exam  >  Interview Preparation Notes  >  Puzzles for Interview  >  1000 Coins and 10 Bags

1000 Coins and 10 Bags | Puzzles for Interview - Interview Preparation PDF Download

Introduction

A dealer has 1000 coins and 10 bags. He has to divide the coins over the ten bags so that he can make any number of coins simply by handing over a few bags. How must divide his money into the ten bags?

Method

To solve this puzzle, we can represent each bag as each place value which takes either the value of 0 or 1. For example, if we have to give 7 coins then it is represented as 0000000111. The last 3 digits of 1 represent that those 3 bags whose place values are 1,2,4 are to be given to give 7 coins. Remember that each bag should be either given or not given, which means there are only 2 choices available, which has similarity with the numbers in base 2 where each digit has only 2 values either 1 or 0.

Steps

We can fill coins in the 10 bags in increasing order of 2^n where n varies from 0 – 8, filling the last bag with all remaining coins as follows:

1 = 20 = 1
2 = 21 = 2
3 = 22 = 4
4 = 23 = 8
5 = 24 = 16
6 = 25 = 32
7 = 26 = 64
8 = 27 = 128
9 = 28 = 256
10 = remaining coins = 489

Conclusion

Now, the dealer can make any number of coins just by handing over the bags. For example, if the dealer needs to give 519 coins, it can be represented as bag 2 + bag 4 + bag 8 + bag 16 + bag 489. By following this method, the dealer can easily divide 1000 coins into 10 bags and make any number of coins by handing over a few bags.

The document 1000 Coins and 10 Bags | Puzzles for Interview - Interview Preparation is a part of the Interview Preparation Course Puzzles for Interview.
All you need of Interview Preparation at this link: Interview Preparation
109 docs

Top Courses for Interview Preparation

109 docs
Download as PDF
Explore Courses for Interview Preparation exam

Top Courses for Interview Preparation

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

1000 Coins and 10 Bags | Puzzles for Interview - Interview Preparation

,

MCQs

,

Sample Paper

,

Important questions

,

Exam

,

shortcuts and tricks

,

study material

,

past year papers

,

1000 Coins and 10 Bags | Puzzles for Interview - Interview Preparation

,

Viva Questions

,

video lectures

,

mock tests for examination

,

Summary

,

ppt

,

Objective type Questions

,

Previous Year Questions with Solutions

,

Semester Notes

,

Extra Questions

,

Free

,

pdf

,

practice quizzes

,

1000 Coins and 10 Bags | Puzzles for Interview - Interview Preparation

;