0890. Find and Replace Pattern
Description
**Input:** words = ["abc","deq","mee","aqq","dkd","ccc"], pattern = "abb"
**Output:** ["mee","aqq"]
**Explanation:** "mee" matches the pattern because there is a permutation {a -> m, b -> e, ...}.
"ccc" does not match the pattern because {a -> c, b -> c, ...} is not a permutation, since a and b map to the same letter.**Input:** words = ["a","b","c"], pattern = "a"
**Output:** ["a","b","c"]ac
Previous0889. Construct Binary Tree from Preorder and Postorder TraversalNext0891. Sum of Subsequence Widths
Last updated