#24 - Count Letter Frequency
You are given a string. Your task is to implement a function that counts the frequency of each letter in the string.
Ignore case sensitivity. Consider 'A' and 'a' as the same letter.
Ignore non-alphabetic characters
Example 1
Input
"tomato"
Output
t = 2
o = 2
m = 1
a = 1
Example 2
Input
"hello world"
Output
h = 1
e = 1
l = 3
o = 2
w = 1
r = 1
d = 1
Last updated