Boxes of Money
You are given b boxes and n dollar bills. The money has to be sealed in the b boxes in a way such that without thereafter opening a box, you can give someone a requested whole amount of dollars from 0 to n. How should b be related to n for this to happen?
n <= 2^b – 1
ReplyDeleteexplain the solution
ReplyDelete