Ordered text permutations
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Create a block of text that gives all permutations (including repeats) of some text, in the order of the original letters.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
ZA
Sample output:
ZZ
ZA
AZ
AA
Sample input:_
ABC
Sample output:
AAA
AAB
AAC
ABA
ABB
ABC
ACA
ACB
ACC
BAA
BAB
BAC
BBA
BBB
BBC
BCA
BCB
BCC
CAA
CAB
CAC
CBA
CBB
CBC
CCA
CCB
CCC
Sample input:_
THAI
Sample output:
TTTT
TTTH
TTTA
TTTI
TTHT
TTHH
TTHA
TTHI
TTAT
TTAH
TTAA
TTAI
TTIT
TTIH
TTIA
TTII
THTT
THTH
THTA
THTI
THHT
THHH
THHA
THHI
THAT
THAH
THAA
THAI
THIT
THIH
THIA
THII
TATT
TATH
TATA
TATI
TAHT
TAHH
TAHA
TAHI
TAAT
TAAH
TAAA
TAAI
TAIT
TAIH
TAIA
TAII
TITT
TITH
TITA
TITI
TIHT
TIHH
TIHA
TIHI
TIAT
TIAH
TIAA
TIAI
TIIT
TIIH
TIIA
TIII
HTTT
HTTH
HTTA
HTTI
HTHT
HTHH
HTHA
HTHI
HTAT
HTAH
HTAA
HTAI
HTIT
HTIH
HTIA
HTII
HHTT
HHTH
HHTA
HHTI
HHHT
HHHH
HHHA
HHHI
HHAT
HHAH
HHAA
HHAI
HHIT
HHIH
HHIA
HHII
HATT
HATH
HATA
HATI
HAHT
HAHH
HAHA
HAHI
HAAT
HAAH
HAAA
HAAI
HAIT
HAIH
HAIA
HAII
HITT
HITH
HITA
HITI
HIHT
HIHH
HIHA
HIHI
HIAT
HIAH
HIAA
HIAI
HIIT
HIIH
HIIA
HIII
ATTT
ATTH
ATTA
ATTI
ATHT
ATHH
ATHA
ATHI
ATAT
ATAH
ATAA
ATAI
ATIT
ATIH
ATIA
ATII
AHTT
AHTH
AHTA
AHTI
AHHT
AHHH
AHHA
AHHI
AHAT
AHAH
AHAA
AHAI
AHIT
AHIH
AHIA
AHII
AATT
AATH
AATA
AATI
AAHT
AAHH
AAHA
AAHI
AAAT
AAAH
AAAA
AAAI
AAIT
AAIH
AAIA
AAII
AITT
AITH
AITA
AITI
AIHT
AIHH
AIHA
AIHI
AIAT
AIAH
AIAA
AIAI
AIIT
AIIH
AIIA
AIII
ITTT
ITTH
ITTA
ITTI
ITHT
ITHH
ITHA
ITHI
ITAT
ITAH
ITAA
ITAI
ITIT
ITIH
ITIA
ITII
IHTT
IHTH
IHTA
IHTI
IHHT
IHHH
IHHA
IHHI
IHAT
IHAH
IHAA
IHAI
IHIT
IHIH
IHIA
IHII
IATT
IATH
IATA
IATI
IAHT
IAHH
IAHA
IAHI
IAAT
IAAH
IAAA
IAAI
IAIT
IAIH
IAIA
IAII
IITT
IITH
IITA
IITI
IIHT
IIHH
IIHA
IIHI
IIAT
IIAH
IIAA
IIAI
IIIT
IIIH
IIIA
IIII
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 49 | 0.0384 | 2014/10/11 03:49:20 | 0B / 24B / 24B |
2 | mitchs | 49 | 0.0444 | 2014/10/11 04:20:27 | 0B / 28B / 19B |
3 | Histocrat | 50 | 0.0415 | 2014/10/15 05:05:56 | 0B / 28B / 20B |
4 | Histocrat (rand) | 50 | 0.0345 | 2014/10/15 05:39:07 | 0B / 28B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tybalt89 | 39 | 0.0491 | 2014/10/20 00:11:11 | 0B / ?B / ?B |
2 | teebee | 40 | 0.0577 | 2014/10/22 17:55:38 | 0B / 13B / 27B |
3 | tails | 42 | 0.0860 | 2014/10/11 01:17:32 | 0B / 18B / 22B |
4 | brx | 42 | 0.0473 | 2014/10/23 02:45:43 | 0B / 18B / 22B |
5 | brx(alt) | 45 | 0.0440 | 2014/10/23 16:31:32 | 0B / 15B / 29B |
6 | BioFALSE | 87 | 0.0335 | 2014/10/11 05:10:02 | 0B / 44B / 42B |
7 | brx(alt+teebee) | 41 | 0.0639 | 2014/10/24 20:43:46 | 0B / 14B / 27B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | leonid | 78 | 0.1136 | 2014/10/11 02:46:14 | 0B / 52B / 20B |
2 | hallvabo | 78 | 0.0876 | 2014/10/11 06:56:23 | 0B / 52B / 20B |
3 | mitchs | 78 | 0.0908 | 2014/10/11 12:57:18 | 0B / 45B / 20B |
4 | rolf | 78 | 0.0859 | 2014/10/11 20:43:59 | 0B / 52B / 20B |
5 | twobit | 78 | 0.1054 | 2014/10/21 20:22:44 | 0B / 46B / 24B |
6 | hallvabo (symbol) | 81 | 0.1107 | 2014/10/11 07:01:38 | 0B / 40B / 38B |
7 | nooodl | 82 | 0.0900 | 2014/10/11 21:42:17 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 17 | 0.0657 | 2014/10/11 09:00:01 | 0B / 5B / 12B |
2 | medialuna | 22 | 0.0709 | 2014/10/10 20:38:28 | 0B / 6B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 25 | 0.0323 | 2014/10/11 18:36:21 | 0B / 10B / 15B |
2 | teebee | 17 | 0.0193 | 2014/12/26 07:25:30 | 0B / 6B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | cojna | 39 | 0.0339 | 2014/10/10 22:25:38 | 0B / 26B / 13B |
2 | int-e | 39 | 0.0329 | 2014/10/10 22:30:05 | 0B / 26B / 12B |
3 | henkma | 39 | 0.0325 | 2014/10/17 00:10:21 | 0B / 26B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 75 | 0.0558 | 2014/10/17 10:52:31 | 0B / 16B / 54B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 23 | 0.0773 | 2014/10/22 15:47:36 | 0B / 4B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nooodl | 3 | 0.2423 | 2014/10/10 20:34:11 | 2B / ?B / ?B |
2 | whio | 3 | 0.2630 | 2014/10/14 04:50:39 | 2B / 0B / 1B |
3 | mitchs | 3 | 0.2441 | 2014/10/24 16:37:42 | 2B / 0B / 1B |
4 | recursive | 3 | 0.2433 | 2015/09/29 15:55:25 | 2B / 0B / 1B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Hendrik | 6 | 0.1680 | 2014/10/11 06:24:26 | 0B / 6B / 0B |
2 | teebee | 6 | 0.0399 | 2014/10/11 08:01:49 | 0B / 6B / 0B |
3 | mroman | 6 | 0.0492 | 2014/10/12 04:20:38 | 0B / 6B / 0B |
4 | fizzie | 6 | 0.0487 | 2014/10/12 04:33:49 | 0B / 6B / 0B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | gs2 | nooodl | 3 | 10000 |
2 | Nibbles | tails | 3 | 10000 |
3 | Jelly | Erik the Outgolfer | 4 | 7500 |
4 | Burlesque | Hendrik | 6 | 5000 |
5 | J | pooq | 17 | 1764 |
6 | K | teebee | 17 | 1764 |
7 | GolfScript | tails | 23 | 1304 |
8 | Haskell | cojna | 39 | 769 |
9 | Perl | tybalt89 | 39 | 769 |
10 | z80 | fizzie | 44 | 681 |
11 | Ruby | leonid | 49 | 612 |
12 | xgawk | llhuii | 66 | 454 |
13 | sed | tails | 75 | 400 |
14 | Python | leonid | 78 | 384 |
15 | Brainfuck | mitchs | 146 | 205 |
return to the top page