TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Karthik Agarwal
NA
748
266k
How to do permutations and combinations?
Jul 27 2012 5:51 AM
I have a scenario like this:
Three items with priority 0.
Let that be priority_0_1, priority_0_2, priority_0_3
Two Items with priority 1.
Let that be priority_1_1, priority_1_2
One Item with priority 1.
Let that be priority_2_1
So i want all the outputs as follows:
priority_0_1, priority_1_1, priority_2_1
priority_0_1, priority_1_2, priority_2_1
priority_0_2, priority_1_1, priority_2_1
priority_0_2, priority_1_2, priority_2_1
priority_0_3, priority_1_1, priority_2_1
priority_0_3, priority_1_2, priority_2_1
Note: The above stated is just an example.
Number of priorities and the number of items in a priority will vary.
Reply
Answers (
1
)
how to not display the user input password
The "for" cyclic of question