#3295

Report Spam Message

specialist · 910 · lc medium +31 · 48.5% accepted · 96 likes · top 34%

Description

You are given string arrays message and bannedWords. A message is spam if at least two of its words exactly match a banned word. Return true if the message is spam.

Code

1
2
3