+ 6

*Daily challenge* : Given a string, write a program to calculate frequencies of each character(not in repeated way)

Counting the occurence of each character of string. Suppose Input is : "PROGRAMMING" then Output should be : P=1 R=2 O=1 G=2 A=1 M=2 I = 1 N=1 Output should not be like: P=1 R=2 O=1 G=2 R=2 A=1 M=2 M=2 I = 1 N=1 G=2 => The character tht appear once in output should not be appear in output again. Thanks .

24th Aug 2017, 8:07 PM
Amrendra Kumar
Amrendra Kumar - avatar
8 ответов
24th Aug 2017, 9:18 PM
Rrestoring faith
Rrestoring faith - avatar
+ 6
Here's my C# implementation ✌ LINQ One-Liner〰 Console.WriteLine(
quot;{ character } = { str.Count(c => c == character) }"); Enjoy! https://code.sololearn.com/clrx3qWCVlCT/?ref=app
25th Aug 2017, 3:11 AM
Zephyr Koo
Zephyr Koo - avatar
24th Aug 2017, 11:31 PM
aklex
aklex - avatar
24th Aug 2017, 9:22 PM
Mehmet
Mehmet - avatar
+ 3
https://code.sololearn.com/cc0U7x0yh98p/?ref=app
31st Dec 2017, 2:37 PM
Abhishek Tandon
Abhishek Tandon - avatar
- 1
Heres new challenge... check it out.. https://www.sololearn.com/discuss/653982/?ref=app
25th Aug 2017, 2:31 AM
sayan chandra
sayan chandra - avatar
- 1
26th Aug 2017, 3:33 AM
sayan chandra
sayan chandra - avatar