Hi, I have a problem I'm struggling to solve in ColdFusion - I wonder if someone can help me with.
I am being given a variable length, numeric string (min 6, max 20). I need to show all combinations of those values that will result in a unique set of 6. The resulting output is sorted - so 1,2,3,4,5,6 is the same as 1,2,3,4,6,5. I'd also like to see if there is an easy way to calculate the expected number of each in advance. Just to illustrate what I'm looking to do (in case its not clear from above): The input string might be "1,2,3,4,5,6,7" and I'd need to return the following results: 123456 123457 123467 123567 124567 134567 234567 Any thoughts on this on how to approach this are greatly appreciated. Thanks! - KsF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289413 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

