Word Pattern Check Problem
Word Pattern Check Problem — ExecCode School DSA Practice
Solve the Word Pattern Check problem on ExecCode. Free online school DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Given a pattern string and a string of words, determine if the words follow the same pattern. Your task is to solve Word Pattern Check. Print true if they do, and false otherwise.
Examples
Input abba dog cat cat dog; Output True. Input abba dog cat cat fish; Output False
Constraints
1 <= n <= 10^5
Practice Word Pattern Check free on ExecCode. Browse DSA problems, topic map, and placement guides.