You are given two string arrays, queries and dictionary, where all strings in both arrays have the same length.
In one edit, you can choose any character of a word and replace it with any other lowercase English letter.
Return a list of all strings in queries that can be transformed to match at least one word in dictionary using at most queries.
Constraints:
queries.length, dictionary.length
n queries[i].length dictionary[j].length
n
All queries[i] and dictionary[j] consist of lowercase English letters.
You are given two string arrays, queries and dictionary, where all strings in both arrays have the same length.
In one edit, you can choose any character of a word and replace it with any other lowercase English letter.
Return a list of all strings in queries that can be transformed to match at least one word in dictionary using at most queries.
Constraints:
queries.length, dictionary.length
n queries[i].length dictionary[j].length
n
All queries[i] and dictionary[j] consist of lowercase English letters.