Tag Citation

Given a piece of text text and a list of source strings sources (numbered from 1 in input order).

Part 1: Count how many times each source appears in the text as a whole word.

  • Matching is c...

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: