+ 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 .
8 Antworten
+ 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
+ 3
Well again I'm late T_T
https://code.sololearn.com/W0N38pCpOoSS/#html
+ 3
https://code.sololearn.com/cc0U7x0yh98p/?ref=app
- 1
Heres new challenge...
check it out..
https://www.sololearn.com/discuss/653982/?ref=app
- 1
heres my new dose
check it out
https://www.sololearn.com/discuss/658245/?ref=app