Skip to content

Commit e1bf34c

Browse files
committed
Add problem statement #25
1 parent 87b8aaf commit e1bf34c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""
2+
Daily Coding Problem #25
3+
4+
This problem was asked by Facebook.
5+
6+
Implement regular expression matching with the following special characters:
7+
. (period) which matches any single character
8+
* (asterisk) which matches zero or more of the preceding element
9+
10+
That is, implement a function that takes in a string and a valid regular
11+
expression and returns whether or not the string matches the regular
12+
expression.
13+
14+
For example, given the regular expression "ra." and the string "ray",
15+
your function should return true. The same regular expression on the
16+
string "raymond" should return false.
17+
18+
Given the regular expression ".*at" and the string "chat", your function
19+
should return true. The same regular expression on the string "chats"
20+
should return false.
21+
22+
"""

0 commit comments

Comments
 (0)