CHALLENGE : ORDERING THE STRING! | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 7

CHALLENGE : ORDERING THE STRING!

You are given a string, you have to arrange its each character in the following order: 👉In case of capital and small letter occurrence, capital letters will be ordered first and then small letters, in alphabetical order. If any letter repeats, replace the repeated part with number of its occurrences 👉Then numbers in ascending order (in parenthesis) 👉And at last the other characters​ in sequence of string Example, Input = I-Love2-Code-Since*1951 Output = CILScde3ino2v(1259)-*

10th Feb 2018, 6:07 AM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
4 Antworten
10th Feb 2018, 6:14 AM
Pedro Maimere
Pedro Maimere - avatar
11th Feb 2018, 6:39 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 4
Note: Guyz, must comment a link of this CHALLENGE in your post, so that we can find you easily! 😊 . Happy Coding... ♥
10th Feb 2018, 6:11 AM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
+ 1
You all deserve for the best answer! 😊 Confused which to choose....
14th Feb 2018, 1:11 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar