• Post Reply Bookmark Topic Watch Topic
  • New Topic

sorting a string on basis of occurance of character  RSS feed

 
Veda Dhawad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to write a program to get folling o/p
String input = "bbbcccca"
output should be : "ccccbbba"
the charte which appers more no of times should be first one and which appears once should be last one
 
Nischal Topno
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this out

[ February 06, 2004: Message edited by: Nischal Topno ]
[ February 08, 2004: Message edited by: Nischal Topno ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!