...

/

Solution Review: Find Repeating Words in a Sentence

Solution Review: Find Repeating Words in a Sentence

Understand the solution for the “Find Repeating Words in a Sentence” challenge.

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 ...