From the course: Developing Unicode-Aware Applications in Go
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Challenge: Word frequency - Go Tutorial
From the course: Developing Unicode-Aware Applications in Go
Challenge: Word frequency
(upbeat electronic music) - [Instructor] For this challenge, I would like you to calculate word frequency, which means for every word, I want to know how many times it appears in the text. So for example, if you do word frequency of one, two, one, two, three, I get two ones, two twos, and one three. And I have a test for you that has a small sentence. This is a translation from a joke by Groucho Marx to German. And here's the expected result, and you can run the test. Currently it's going to fail because, our code is doing nothing.