Search
⌘K

Leetcode 290. Word Pattern

Check whether the characters in pattern and the space-separated words in s have a bijective (one-to-one and onto) mapping that preserves order — i.e., each pattern letter maps to exactly one word and no two letters map to the same word, and substituting letters with their mapped words reproduces s.

Asked at:

Meta

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2025

Meta

Mid-level

Mid October, 2024

Google

Google

Mid-level

Match characters from one list with words from another list based on a pattern

Comments

Your account is free and you can post anonymously if you choose.