How to find repeated words in given paragraph ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to find repeated words in given paragraph ?

only using for loop,array, if else,string.

17th May 2017, 9:48 AM
ANBU
ANBU - avatar
1 Answer
0
The best thing I can think of is create an List of strings to store the words of the paragraph. Then write an algorithm to find matches in the list. make sure to keep track of the repeated words that are found. A list is kind of like an array, sort of.
18th May 2017, 12:02 PM
trevor villanueva
trevor villanueva - avatar