stable partition

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

Partition the characters around the pivot which is just the first character. Stable means order must be preserved in each section.

Output is just:<characters less than pivot><character(s) equal to pivot><characters greater than pivot>

Options

exec is denied

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

Sample input:_

hello, world!

Sample output:

e, d!hlloworl

Sample input:_

5314159265358979323846

Sample output:

3141233234555596897986

Sample input:_

http://thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com/wearejustdoingthistobestupidnowsincethiscangoonforeverandeverandeverbutitstilllookskindaneatinthebrowsereventhoughitsabigwasteoftimeandenergyandhasnorealpointbutwehadtodoitanyways.html

Sample output:

://egefegeffaegedaaeaga.c/eaedgbedcecagfeeadeeadeebdaeaebeeegabgaefeadeegadaeabeaddaa.hhhhhhhhhhhhttptlonstlistotlonststuttlonstominnmtlonlstomwrjustointistostupinowsintisnoonorvrnvrnvrutitstilllookskinntintrowsrvntouitsiwstotimnnrynsnorlpointutwtooitnywystml

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid460.23302008/03/15 18:48:160B / 15B / 28B
2flagitious470.14702008/03/03 10:12:320B / 20B / 27B
3niha470.17082008/03/05 03:20:570B / 20B / 27B
4kurimura490.09412008/03/04 18:45:210B / 18B / 31B
5eban500.10202008/03/03 23:05:430B / 20B / 30B
6shinh500.20442008/03/04 02:05:040B / 20B / 30B
7yowa500.16792008/03/15 18:09:330B / 19B / 31B
8kaki530.14962008/03/03 08:33:040B / 21B / 32B
9tabasa840.10842008/03/03 11:09:481B / 46B / 35B
10ksk430.13512008/07/24 22:29:010B / 12B / 31B
11leonid450.08852008/07/24 13:17:060B / 19B / 26B

Perl _

RankUserSizeTimeDateStatistics
1Mithran440.09102008/03/12 04:44:480B / 12B / 32B
2Terje K450.05312008/03/11 21:03:170B / 18B / 26B
3ais523510.07072008/03/05 20:06:230B / ?B / ?B
4tails400.03642016/12/01 10:58:180B / 19B / 20B
5Terje K430.08502008/03/27 23:04:090B / 20B / 23B

Python _

RankUserSizeTimeDateStatistics
1kt3k710.08142008/03/03 19:53:000B / 35B / 35B
2hirose720.09402008/03/03 14:36:470B / 37B / 29B
3Defenestrator770.76112008/03/05 15:09:140B / 39B / 37B
4SeeNoEvil880.11492008/03/03 08:33:520B / 48B / 25B
5_910.15482008/03/03 07:37:240B / 49B / 27B
6hallvabo610.07662010/10/17 23:20:060B / 39B / 21B

PHP _

RankUserSizeTimeDateStatistics
1daira860.36872008/03/03 18:08:490B / 46B / 40B
2o-cn740.05832010/01/11 21:47:560B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1kaki720.13932012/12/07 05:41:190B / 46B / 21B
2murky-satyr1260.17222008/06/25 02:31:550B / 65B / 52B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima910.16842008/03/03 13:28:250B / 57B / 27B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr5110.27852009/11/01 11:44:420B / 27B / 21B
2pooq6011.20662009/10/12 13:27:530B / 28B / 23B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr1042.46642008/03/08 00:58:040B / 67B / 25B
2pooq1192.48982008/03/07 20:05:470B / 77B / 35B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr730.06802008/03/05 04:49:430B / 38B / 35B
2murky-satyr640.07482008/04/28 10:26:530B / 35B / 27B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1130.08312008/06/01 02:29:130B / 66B / 32B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr1190.42502008/03/04 02:50:170B / 62B / 53B
2murky-satyr1090.44522008/04/13 07:49:400B / 54B / 52B

Forth _

RankUserSizeTimeDateStatistics
151b1330.08562008/03/11 22:58:110B / 83B / 13B
251b1150.05742010/04/04 00:36:000B / 65B / 14B

BASIC _

RankUserSizeTimeDateStatistics
1pooq900.07492008/03/05 15:07:380B / 45B / 31B
2yt990.06112008/03/04 10:35:160B / 51B / 42B

Erlang _

RankUserSizeTimeDateStatistics
151b1130.92392008/03/03 17:30:280B / 52B / 59B

J _

RankUserSizeTimeDateStatistics
1pooq380.14792008/03/16 00:32:200B / 15B / 23B
2I., S.240.09412012/03/11 07:23:550B / 7B / 17B

K _

RankUserSizeTimeDateStatistics
1teebee220.03302012/08/09 07:24:010B / 7B / 15B

C _

RankUserSizeTimeDateStatistics
1hinoe790.11542008/03/04 05:38:020B / 37B / 42B
251b820.06982008/03/10 13:18:540B / 38B / 44B
3tako990.07682008/03/08 05:17:520B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
1kurimura1000.03942008/03/14 15:08:420B / 65B / 32B
251b1020.02032008/03/04 09:07:430B / 64B / 34B

OCaml _

RankUserSizeTimeDateStatistics
1ksk890.09582008/04/10 23:38:550B / 47B / 38B
2m.ukai900.18102008/04/10 19:15:230B / 46B / 42B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa550.01462008/03/03 22:30:100B / ?B / ?B
2Defenestrator560.04772008/03/05 14:44:210B / 24B / 30B
3test580.05202008/03/14 21:07:211B / 31B / 24B
4konn590.04802008/03/03 18:27:170B / ?B / ?B

Ada _

RankUserSizeTimeDateStatistics
1D1960.02912008/03/13 11:30:420B / 134B / 46B
2yt1990.08872008/03/04 10:43:010B / 130B / 52B
3D1910.08172008/03/17 10:25:340B / 128B / 46B

Pascal _

RankUserSizeTimeDateStatistics
1uru1320.12672009/01/29 07:49:380B / 83B / 41B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa471.23312011/03/23 22:08:500B / 23B / 24B

AWK _

RankUserSizeTimeDateStatistics
1nn580.07362008/06/24 22:49:190B / 24B / 32B

sed _

RankUserSizeTimeDateStatistics
1emoken2620.22362008/03/05 11:53:570B / 94B / 152B
2tails620.07732016/12/01 10:45:210B / 16B / 42B

Bash _

RankUserSizeTimeDateStatistics
1tails450.04142016/12/01 12:15:340B / 20B / 20B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)750.54912008/03/03 10:53:5332B / 28B / 14B
2yshl1330.41872008/03/03 10:53:450B / 96B / 16B
3yshl(bin)741.75922008/09/14 14:17:2130B / 27B / 17B
4 yshl1381.37382008/11/24 18:37:260B / 102B / 17B

R _

RankUserSizeTimeDateStatistics
1pooq833.63742008/05/31 06:42:150B / 42B / 38B

GolfScript _

RankUserSizeTimeDateStatistics
1irori190.28382008/03/06 23:31:020B / 3B / 16B
2flagitious200.40192008/03/03 09:54:550B / 5B / 15B
3flagitious(alt)260.34882008/03/03 10:08:030B / 5B / 21B

gs2 _

RankUserSizeTimeDateStatistics
1whio50.25872017/02/17 05:46:012B / 1B / 2B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik140.09572016/12/01 18:21:410B / 10B / 4B

Lazy-K _

RankUserSizeTimeDateStatistics
1irori5720.52902008/03/16 00:09:530B / 291B / 281B
251b8320.67602008/03/15 19:55:090B / 424B / 408B

Universal Lambda _

RankUserSizeTimeDateStatistics
1irori470.19892008/12/28 01:16:5327B / 11B / 9B
2flagitious540.18832008/11/14 21:41:2236B / 8B / 7B

z80 _

RankUserSizeTimeDateStatistics
1kodera270.40052008/04/24 03:12:1516B / 5B / 5B

Vim _

RankUserSizeTimeDateStatistics
1udioica400.04732016/12/01 00:39:593B / ?B / ?B
2nn851.66592009/10/29 23:26:025B / 42B / 34B

goruby _

RankUserSizeTimeDateStatistics
1flagitious300.36372008/03/03 10:32:500B / 10B / 19B
2leonid340.37912008/03/15 21:36:530B / 11B / 22B
3leonid290.35742008/07/24 13:18:110B / 10B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr709.01282008/03/04 04:21:310B / 37B / 32B

Language Ranking_

RankLangUserSizeScore
1gs2whio510000
2BurlesqueHendrik143571
3GolfScriptirori192631
4Kteebee222272
5JI., S.242083
6z80kodera271851
7gorubyleonid291724
8Vimudioica401250
9Perltails401250
10Rubyksk431162
11Bashtails451111
12Universal Lambdairori471063
13Octaveinaniwa471063
14Arcmurky-satyr51980
15Haskellnotogawa55909
16AWKnn58862
17Pythonhallvabo61819
18sedtails62806
19JavaScriptmurky-satyr64781
20Groovymurky-satyr70714
21Schemekaki72694
22Postscriptyshl(bin)74675
23PHPo-cn74675
24Chinoe79632
25Rpooq83602
26OCamlksk89561
27BASICpooq90555
28Common LISPkozima91549
29Dkurimura100500
30Iomurky-satyr104480
31Smalltalkmurky-satyr109458
32Erlang51b113442
33Luamurky-satyr113442
34Forth51b115434
35Pascaluru132378
36AdaD191261
37Lazy-Kirori57287

return to the top page