Back
Close

Organize Text

Statement

 Goal

You must order the provided string of characters in alphabetical order, with upper case before lower case (e.g. AaBb). Then, special characters must be put at the end in the order of their appearance in the string. Spaces should be ignored.
Input
An entry string input
Output
An exit string output
Constraints
0<= characters in string entry <=256
Example
Input
Hello World
Output
deHllloorW

Game modes
FastestReverse

Test cases
Test 1 Test
Input
Hello World
Output
deHllloorW

Validator 1 Validator
Input
Let me go out dad
Output
addeegLmoottu

Test 2 Test
Input
An ElePHPant
Output
AaEeHlnnPPt

Validator 2 Validator
Input
Clash Of Code by Astremy
Output
AabCCdeefhlmOorsstyy

Test 3 Test
Input
Do you want to go to United States ? I do !
Output
aaDddeegIinnooooooSsttttttUuwy?!

Validator 3 Validator
Input
Please, be kind with Me ! I would like this rose ;p
Output
abddeeeeeehhIiiiikklllMnooPprsssttuww,!;

Test 4 Test
Input
Give me your HEART, and I give you mine...
Output
AadEeeeeGgHIiiimmnnooRrTuuvvyy,...

Validator 4 Validator
Input
'Tis almost morning; I would have thee gone: And yet no further than a wanton's bird; Who lets it hop a little from her hand, Like a poor prisoner in his twisted gyves, And with a silk thread plucks it back again, So loving-jealous of his liberty.
Output
AAaaaaaaaaaaaaaabbbccdddddddeeeeeeeeeeeeeeeefffggggghhhhhhhhhhhhIiiiiiiiiiiiiiiiiijkkkkLllllllllllmmmnnnnnnnnnnnnnnoooooooooooooooopppprrrrrrrrrrrSssssssssssssTttttttttttttttttuuuuvvvWwwwwyyy';:';,,,-.

Test 5 Test
Input
;ee-'oe,.
Output
eeeo;-',.

Validator 5 Validator
Input
Sweet, so would I: Yet I should kill thee with much cherishing. Good night, good night! parting is such sweet sorrow,That I shall say good night till it be morrow.
Output
aaaabcccdddddeeeeeeeeeGggggggghhhhhhhhhhhhIIIiiiiiiiiiiikllllllllmmnnnnnoooooooooooooprrrrrrSsssssssssTttttttttttttuuuuwwwwwwYy,:.,!,.

Solution language

Solution

Stub generator input
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants