Uva 10062 Tell me the frequencies!

Nov 17, 2009

Problem: 10062.Tell me the frequencies!
Tics:
1. Declear a structure like: struct arra{ int ascii,int fre} a[128];
2. Store a[m].ascii=m and a[m].fre++
3. Sort frequency wise and if both fre. Are equal the first large ascii
4. Loop is continue from 32 to 127
5. Print newline exactly. No etra new line at the end of the output.

Code In C/C++:

No comments:

Post a Comment