Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 379 Bytes

File metadata and controls

3 lines (2 loc) · 379 Bytes

Question

You are given two strings, pattern and value. The pattern string consists of just the letters a and b, describing a pattern within a string. For example, the string catcatgocatgo matches the pattern aabab (where cat is a and go is b). It also matches patterns like a, ab, and b. Write a method to determine if value matches pattern.