Verify Business Name Overlap with Nickname

Given a business name and a nickname-like nickname field, determine whether their word overlap is sufficient.

Rules:

  1. Split name into whitespace-separated words.
  2. Ignore company-suffix wor...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: