Solution Review: Find Repeating Words in a Sentence
Explore how to create a Go function that detects repeating words in a sentence. Understand string manipulation with strings.Fields, map usage for counting words, and handling case sensitivity to produce a formatted list of repeated words.
We'll cover the following...
We'll cover the following...
Solution overview
For this challenge, you were required to write a function that takes in a string and outputs the repeating words in that string. The first thing to do is to split the string into individual words and we start by using the strings.Fields() function to split the input into separate words and store them in a slice called words ...