Anagram Sentences

Given an array of words and an array of sentences, calculate how many sentences can be created by replacing any word with one of its anagrams.

Note:

  • Two words are said to be anagrams of each o...

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: