Algorithm · Datadog · Medium
Find Repeated Words in a Paragraph You are given a paragraph of text. Your task is to identify every word that appears more than once. Use regular expressions to locate the words and detect repeats. The string may contain arbitrary whitespace, including extra spaces between words. Punctuation attached to a word (e.g., trailing commas or periods) should not cause the word to be counted as a different token. Input: A paragraph string, for example: "This is a test test string,…
Checking your access…