Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hey
I have a string with followed by - (multiple ) , now i want to find all combinations such that the alphabets order don't change.
Say for instance input is ABC--- then output will be all combinations when A precedes B and B precedes C , dash can go anywhere .
A-B-C- is fine but B-A-C- is not as B precedes A
I wrote the code for anagram but could not generalize it for the above constrains
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: combinations of given string
by Kenosis (Priest) on Oct 26, 2013 at 07:08 UTC | |
|
Re: combinations of given string
by BrowserUk (Patriarch) on Oct 26, 2013 at 06:03 UTC | |
by Athanasius (Archbishop) on Oct 26, 2013 at 07:28 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2013 at 10:40 UTC | |
by Athanasius (Archbishop) on Oct 26, 2013 at 14:45 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2013 at 17:19 UTC | |
| |
by LanX (Saint) on Oct 27, 2013 at 00:36 UTC | |
by Anonymous Monk on Oct 26, 2013 at 06:12 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2013 at 06:23 UTC | |
|
Re: combinations of given string
by hdb (Monsignor) on Oct 26, 2013 at 07:56 UTC | |
|
Re: combinations of given string
by LanX (Saint) on Oct 26, 2013 at 23:54 UTC | |
|
Re: combinations of given string
by Anonymous Monk on Oct 26, 2013 at 07:22 UTC | |
|
Re: combinations of given string
by Cristoforo (Curate) on Oct 26, 2013 at 19:44 UTC |