Regular Expression Matching at TikTok

Hard30.4% acceptance

This problem has 50.0% frequency at TikTok.

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 TikTok Questions

View all TikTok questions