Exercise on Maps
Here is an exercise you can solve to test your understanding!
We'll cover the following
Implement WordCount
Have a look at this Online assignment to understand maps better before attempting the question below.
Question
The code below should return a map of the counts of each “word” in the string s
.
You might find strings.Fields helpful in order to solve this question.
Get hands-on with 1400+ tech skills courses.