Algorithm · Datadog · Easy
You are given a paragraph of text. Identify every word that appears more than once. Two occurrences count as the same word if they are spelled identically, ignoring case differences (capitalization does not matter). Return a list of the duplicate words in any order. Each distinct duplicate should appear only once in the output, even if it occurs many times in the paragraph. Example Input Output ["this", "is", "a", "test"] Explanation: "this" occurs twice ("This" and "This"),…
Checking your access…