Algorithm · Meta · Medium
Given an input string and a pattern string, implement a function that reports whether the pattern matches the input. A digit k in the pattern indicates that the character immediately before it may be repeated k times. The pattern is limited to character-and-digit pairs and does not support more elaborate expressions. Input input: A string whose length is at most 1000. pattern: The pattern used for matching. Output Return a Boolean indicating whether input conforms to…
Checking your access…