Cheap Heaps – Umm, no they are costly!

March 2, 2009 at 1:56 pm Leave a comment

I have $309 with me. I need to divide this in heaps so that if you ask for any amount between $1 and $309, I should be able to give you the proper amount by handing over a certain number of these heaps to you without any further need to subdivide a heap. What is the minimum number of heaps I will require?


Entry filed under: Uncategorized.

Measuring business Good problems for programming practice I

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Blog Stats

  • 4,082 hits

Recent Comments

%d bloggers like this: