File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder .solutions ;
2
2
3
- /**
4
- * 10. Regular Expression Matching
5
- *
6
- * Implement regular expression matching with support for '.' and '*'.
7
- *
8
- * '.' Matches any single character.
9
- * '*' Matches zero or more of the preceding element.
10
- *
11
- * The matching should cover the entire input string (not partial).
12
- *
13
- * The function prototype should be:
14
- * bool isMatch(const char *s, const char *p)
15
- *
16
- * Some examples:
17
- * isMatch("aa","a") → false
18
- * isMatch("aa","aa") → true
19
- * isMatch("aaa","aa") → false
20
- * isMatch("aa", "a*") → true
21
- * isMatch("aa", ".*") → true
22
- * isMatch("ab", ".*") → true
23
- * isMatch("aab", "c*a*b") → true
24
- */
25
-
26
3
public class _10 {
27
4
28
5
public static class Solution1 {
You can’t perform that action at this time.
0 commit comments