2 string arrays are given one is list of words and another is queries list, For every query find how many words are anagrams
Asked in the OA stage. Treat matching as case-insensitive, and count duplicate words separately.
query_id, query_text, and anagram_count.query_id ascending.| Column | Type | Description |
|---|---|---|
| word_idPK | INT | Unique identifier for a word |
| word | VARCHAR(100) | Word to compare against queries |
| Column | Type | Description |
|---|---|---|
| query_idPK | INT | Unique identifier for a query |
| query_text | VARCHAR(100) | Query word whose anagram matches must be counted |