• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 2

Count the frequency of letters in string and arrange them into acceding order.

use any language that is comfortable for you. eg:- string is: hey there frequency: e-3 h-2 y-1 t-1 r-1 new ordered string: eeehhrty

c++javacanyphython
18th Nov 2017, 2:50 PM
Devendra Kumar
Devendra Kumar - avatar
1 Odpowiedź
+ 2
Haskell: main = print . reverse . concat . sortBy (comparing length) . group . sort $ "hey there" https://tio.run/##TYs7CsMwEAV7neJhXNiNb5DGpDT4DIuySCL6sdoEfHpFgRTpHvNmPLUnx9h7SLWI4k5K2xGamn9wysOYRCHjhiohKzYIv1kaj2VLtvRFbQT7hcWWVGloDpGzU7@Oz0l51Z@DGZPnC@pZeOr9Aw
18th Nov 2017, 7:19 PM
Schindlabua
Schindlabua - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
What to do after finishing Python Developer
3 Votes
IS POSSIBLE TO PRINT 1 TO 100 WITHOUT FOR LOOP
0 Votes
Practice code
1 Votes
Différence in html
0 Votes
Why cant i run the codes in testing and also cannot do the practice. It shows "error" all the time whenever i try
0 Votes
In html how do you get more than one html documents for more than 1 pages? I’m on iPhone / mobile
3 Votes
Do I need to get a PCA?
0 Votes
New member greeting
0 Votes
How to do the cleaning
1 Votes
Im learning Python on sololearn what do i do Next ( im spanish so unfortunally english tutoriales won't be usefull for me)
0 Votes