we can use the count sort array in this to count the frequencies of character (array size would be fixed 26) and sort that counting array by again count sort or quick sort in decrsaing order and than print the valur in ascci format '97+i'.
On Thu, Jan 13, 2011 at 11:53 AM, Davin <[email protected]> wrote: > Smaple Data : > > input : "abcdacdc" > Output : "cadb" > > If the count is same for characters. maintain the original order of > the characters from input string. > > Please do let me know for any clarification. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- SOURABH JAKHAR,(CSE)(3 year) ROOM NO 167 , TILAK,HOSTEL 'MNNIT ALLAHABAD The Law of Win says, "Let's not do it your way or my way; let's do it the best way." -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
