One Pass of Bubble Sort

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Perform one pass of bubble sort.

-- mender

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

andesine

Sample output:

adenines

Sample input:_

badcbgfedkjihgponmlk

Sample output:

abcbdfedgjihgkonmlkp

Sample input:_

daceffbgafabeaebbbgabgeebaeaciehcddidhhbfddjhjgicdjiaacgaafbgkgbiccacghfkidallbjliachlcedjhabkfdlndfcmdjaikgedcoijomhfepafoejgpdmmamnfqolfbpieirciadsbikneblflktjktmdtpssqsjjhenbvusnkvigtjtvvcmqseerpqnnheulvigwlfpwspffjcywxecydzuigqemjlegddokssmbfyzbpbbunxo

Sample output:

acdefbfafabeaebbbgabgeebaeacgehcddidhhbfddihjgicdjiaacgaafbgjgbiccacghfkidaklbjliachlcedjhabkfdlldfcmdjaikgedcnijomhfeoafoejgpdmmamnfpolfbpieiqciadrbikneblflksjktmdtpssqsjjhenbtusnkvigtjtvvcmqseerpqnnheulvigvlfpwspffjcwwxecydyuigqemjlegddokssmbfyzbpbbunxoz

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat390.03782016/09/23 05:23:340B / 24B / 15B
2mitchs390.03242016/09/23 10:29:390B / 24B / 14B
3xsot420.03772016/09/22 15:33:400B / 22B / 18B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs400.19272016/09/23 11:01:150B / 24B / 15B
2Histocrat400.20012016/09/24 06:43:050B / 24B / 16B

Perl _

RankUserSizeTimeDateStatistics
1teebee340.03362016/09/22 08:39:380B / 18B / 16B
2tails340.03682016/09/28 17:11:010B / 19B / 15B
3%20420.03802016/09/28 09:35:510B / 13B / 29B
4shlomif520.03392016/09/29 21:51:280B / 22B / 27B
5rsFalse780.03412016/10/09 04:27:510B / 45B / 30B

Python _

RankUserSizeTimeDateStatistics
1xsot600.08922016/09/22 11:23:170B / 35B / 19B
2mitchs600.09172016/09/22 11:47:050B / 35B / 19B
3xnor600.09212016/09/22 13:22:030B / ?B / ?B
4Da600.11422016/09/28 03:41:030B / ?B / ?B
5test730.09732016/09/25 05:03:170B / 40B / 29B
6rolf880.09022016/09/23 03:10:360B / 48B / 34B
7mitchs (alt1)600.08672016/10/06 08:05:520B / 35B / 19B
8mitchs (alt2)600.11532016/10/06 08:06:090B / 37B / 21B
9mitchs (alt3)600.09842016/10/06 08:06:240B / 32B / 22B
10mitchs (alt4)600.11152016/10/06 08:06:370B / 33B / 16B

Python3 _

RankUserSizeTimeDateStatistics
1xsot560.17162016/09/22 12:01:410B / 31B / 21B
2mitchs560.17892016/09/23 12:09:300B / 32B / 20B
3Sait2000600.22332016/10/03 15:20:040B / 34B / 21B
4mitchs (Da)470.16772016/10/06 10:55:580B / 28B / 17B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee570.05062016/09/23 05:39:440B / 33B / 21B
2ETHproductions610.06912016/09/25 00:27:380B / 33B / 28B

BASIC _

RankUserSizeTimeDateStatistics
1teebee480.03012016/09/28 07:47:020B / 28B / 18B

C _

RankUserSizeTimeDateStatistics
1tails510.02722016/09/28 13:05:450B / 27B / 24B
2nu600.03182016/09/28 00:03:110B / 35B / 25B
3mitchs610.03172016/09/27 15:06:160B / 35B / 26B
4%20620.03182016/10/05 21:46:340B / 34B / 28B
5chocobi660.03232016/09/28 07:15:040B / 36B / 30B
6julien_c990.03182016/09/29 10:44:430B / 46B / 52B
7mitchs (nu)590.03232016/10/06 07:41:170B / 34B / 25B

Haskell _

RankUserSizeTimeDateStatistics
1Lost_dog510.03282016/09/28 18:14:440B / 32B / 15B
2yuki510.03702016/10/01 14:22:540B / 32B / 11B
3henkma510.03642016/10/02 16:03:340B / 32B / 11B
4nmh510.03402016/10/04 11:24:390B / ?B / ?B

Java _

RankUserSizeTimeDateStatistics
1teebee1210.24312016/10/03 18:00:000B / 69B / 48B

AWK _

RankUserSizeTimeDateStatistics
1llhuii450.03692016/10/01 15:41:460B / 22B / 21B
2teebee450.03622016/10/01 16:42:430B / 21B / 22B
3mitchs480.03292016/09/24 06:49:220B / 19B / 29B

sed _

RankUserSizeTimeDateStatistics
1mitchs710.44022016/09/29 00:12:060B / 38B / 30B
2tails740.11152016/09/28 19:53:360B / 37B / 32B
3%20790.05992016/09/22 18:11:090B / 40B / 36B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails610.14582016/09/30 11:22:400B / 23B / 29B

xgawk _

RankUserSizeTimeDateStatistics
1teebee450.11132016/10/01 16:43:140B / 21B / 22B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs380.03982016/09/29 04:24:370B / 0B / 38B
2Lost_dog440.03932016/09/29 20:48:260B / 0B / 44B

Hexagony _

RankUserSizeTimeDateStatistics
1mender190.16042016/09/25 03:11:430B / 0B / 19B

><> _

RankUserSizeTimeDateStatistics
1mender120.30012016/09/25 05:44:220B / 4B / 8B
2Sp3000120.28912016/09/27 13:24:080B / 4B / 8B
3mitchs120.30562016/09/27 14:55:110B / 4B / 8B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs100.05572016/09/22 11:34:290B / 1B / 9B
2tails100.05792016/09/23 09:27:220B / 1B / 9B
3mender100.06482016/09/25 01:55:070B / 1B / 9B
4%20110.05672016/09/22 11:57:360B / 1B / 10B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs50.25752016/09/22 10:27:434B / 0B / 1B

FerNANDo _

RankUserSizeTimeDateStatistics
1tails1650.22322016/10/05 11:27:520B / 83B / 0B

Vim _

RankUserSizeTimeDateStatistics
1udioica300.09662017/05/29 05:19:450B / 15B / 14B

goruby _

RankUserSizeTimeDateStatistics
1mitchs240.08272016/09/23 10:57:350B / 13B / 8B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o768.31812016/09/23 02:36:180B / 48B / 23B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs510000
2GolfScriptmitchs105000
3><>mender124166
4Hexagonymender192631
5gorubymitchs242083
6Vimudioica301666
7Perlteebee341470
8Brainfuckmitchs381315
9RubyHistocrat391282
10Ruby2mitchs401250
11AWKllhuii451111
12xgawkteebee451111
13Python3mitchs (Da)471063
14BASICteebee481041
15Ctails51980
16HaskellLost_dog51980
17JavaScriptteebee57877
18Pythonxsot60833
19Bash (builtins)tails61819
20sedmitchs71704
21Scalarotary-o76657
22Javateebee121413
23FerNANDotails165303

return top