Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Regular Expression Matching

Implement matching of string s against pattern p supporting '.' (any single char) and '*' (zero or more of the preceding element). The match must cover the entire string. Print true or false.

Constraints

1 <= len(s) <= 20 1 <= len(p) <= 20

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.