Deviopath › Go

Word Count

Easy · Maps

strings.Fields splits on any whitespace. Lowercase each word, then count with a map[string]int.

Write WordCount(text) that returns how many times each word appears, ignoring case. "Go go GO" counts as three "go".

Next: Unique Values