Hello all, 

Thanks in advance. Please help me to finish this assignments. 

Write a program which will accept a string. This program should output all 
the characters and number of their occurrences, in order of their 
occurrences. So that, character appearing most number of times should be 
printed first and characters appearing least number of times (i.e. 1 time) 
should appear at the last. Capital and small characters should be 
considered as same. Only spaces in the input string should not be counted.

Example: Input string is "Hello there", it should output: e: 3, h: 2, l: 2, 
o:1, i: 1, t : 1, r: 1 *



-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b608f1a5-d833-4bf1-b954-61598e30f808n%40googlegroups.com.

Reply via email to