0
Upcoming SlideShare
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Standard text messaging rates apply

# [Development Simply Put] Items Combinations Generation Library

97

Published on

Sometimes you have a set of items (could be numbers, names, custom entities, .....) and you need to get all possible combinations each consists of a given number of items from the bigger set. Imagine …

Sometimes you have a set of items (could be numbers, names, custom entities, .....) and you need to get all possible combinations each consists of a given number of items from the bigger set. Imagine that you need to write a program by which a user can define some birthday gifts. Each gift has an id, name, description, price, ... Your program is expected to provide all possible combinations of gifts that a father can get to his son given that the number of gift items doesn't exceed 5 and the price doesn't exceed LE 150. The "Items Combinations Generation Library" library provides a class with some methods which you can use to get all possible combinations of any set of items. If you want to know more, you can read this article.

Published in: Technology
1 Like
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

Views
Total Views
97
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
1
0
Likes
1
Embeds 0
No embeds

No notes for slide

### Transcript

• 1. Intentionally left empty
• 2. Intentionally left empty
• 3. Sometimes you have a set of items (could be numbers, names, custom entities, .....) and you need to get all possible combinations each consists of a given number of items from the bigger set. Imagine that you need to write a program by which a user can define some birthday gifts. Each gift has an id, name, description, price, ... Your program is expected to provide all possible combinations of gifts that a father can get to his son given that the number of gift items doesn't exceed 5 and the price doesn't exceed LE 150. The "Items Combinations Generation Library" library provides a class with some methods which you can use to get all possible combinations of any set of items. If you want to know more, you can read this article. [Development Simply Put] Items Combinations Generation Library "If you can't explain it simply, you don't understand it well enough" -Albert Einstein
• 4. I am "Ahmed Tarek" the owner and author of the "Development Simply Put" blog. During my career days and day after day I got more confident that it's all about sharing not the title you have. I believe that everyone has something to share whatever small he thinks of it. Sometimes a great idea comes out of just a tiny idea and the same for knowledge. I always try to gain knowledge and learn new skills and I found that the best way to learn is to try to teach what you already know. This makes you think of the best simplest way to explain complex logic which makes you spot some points may be even yourself didn't recognize in the first time. The greatest thing in the human mind is that it carries out too complicated operations and finally presents it into a simple form, so why do we always try to re-complicate things? This is what encouraged me to start my blog -Development Simply Put (http://developmentsimplyput.blogspot.com)- trying to do my best to simplify main concepts in IT development and share my humble knowledge in this field. Why? "If you can't explain it simply, you don't understand it well enough" -Albert Einstein