Find All Anagrams of a Target String

Given a list of strings words and a target string target, return all strings in words that are anagrams of target, preserving their original order.

Two strings are anagrams if they contain ex...

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: