#3295

Report Spam Message

medium · 48.5% accepted · 96 likes · top 34%

array · hash table · string

Description

You are given an array of strings message and an array of strings bannedWords.

An array of words is considered spam if there are at least two words in it that exactly match any word in bannedWords.

Return true if the array message is spam, and false otherwise.

Solution