Regular Expression Matching at Twitter

Hard30.4% acceptance

This problem has 100.0% frequency at Twitter.

Problem Description

Given an input string `s` and a pattern `p`, implement regular expression matching with support for `'.'` and `'*'` where: * `'.'` Matches any single character.​​​​ * `'*'` Matches zero or more of the preceding element. Return a boolean indicating whether the matching covers the entire input...

Read full problem and hints

Topics

Also asked at 26 companies


More Twitter Questions

View all Twitter questions