Actually, permutation is your friend... and there are tons of code samples
and algorithms out there. I'd start here.
http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozill
a%3Aen-US%3Aofficial&hs=mXk&q=permutation+coldfusion&btnG=Search

..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


> Recursion is your friend ;o)
> 
> Mark
> 
> On Feb 14, 2008 9:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
>
> > Given a string, e.g. "ABCD"
> >
> > I need to come up with all combinations of letters
> > eg
> > ABCD
> > ABDC
> > ACBD
> > ACDB
> > ....
> >
> > And exlude strings like 'AAAA', 'AAAB' unless you pass a string with
> > duplicate characters
> > If I pass the string "AAAB" then it'd return:
> > AAAB
> > AABA
> > ABAA
> > BAAA
> >
> > 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299028
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to