+ 1

Challenge : The alphabet pool!!! (Hard)

input any string (example :Domcekas) and the system has to output every letter in my string the alphabetic order (Dacekmos) p.s. upper letter are first but in alphabetic order to like (DOMce => DMOce) good luck

9th Aug 2017, 1:03 PM
Domces Games
Domces Games - avatar
7 odpowiedzi
+ 5
Seriously? Hard? @@ var s1 = 'Domcekas'; var s2 = 'DOMce'; function order_s(s) { s = s.split(''); s.sort(); s = s.join(''); alert(s); } order_s(s1); order_s(s2);
9th Aug 2017, 1:11 PM
visph
visph - avatar
+ 2
Well the code is almost already write... I don't think it's necessary to save it in a code playground ;P
9th Aug 2017, 1:19 PM
visph
visph - avatar
9th Aug 2017, 6:29 PM
null
null - avatar
12th Aug 2017, 12:26 PM
sayan chandra
sayan chandra - avatar
0
then write a code, and dont forget you need to input a randon string
9th Aug 2017, 1:15 PM
Domces Games
Domces Games - avatar
0
Wow, was going to try this but doubt I could improve on Shinigami42's efficiency. 👏
9th Aug 2017, 6:33 PM
André
André - avatar
- 1
aaaaaahhhh... ok lets vote... challenge: 1.The Prime Search 2.The game of brackets choose, both are hard
9th Aug 2017, 1:43 PM
Domces Games
Domces Games - avatar