diff options
author | Jack Sangdahl <[email protected]> | 2025-02-03 15:37:19 -0700 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2025-02-03 15:37:19 -0700 |
commit | 55a67f776dd9acd258cae16ffb636751666b0f40 (patch) | |
tree | 601539de43809b70ceb8228a12c35883fa300b03 /wildcard_matching.cpp | |
parent | a0030873dabb517594ae0394350d6715071f7fb8 (diff) | |
download | leetcode-55a67f776dd9acd258cae16ffb636751666b0f40.tar.gz leetcode-55a67f776dd9acd258cae16ffb636751666b0f40.zip |
chore: Remove incomplete solutions
Diffstat (limited to 'wildcard_matching.cpp')
-rw-r--r-- | wildcard_matching.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/wildcard_matching.cpp b/wildcard_matching.cpp deleted file mode 100644 index 23a6538..0000000 --- a/wildcard_matching.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - bool isMatch(string s, string p) { - int m = s.length(), n = p.length(); - int i = 0, j = 0, astr = -1, match; - while (i < m) { - if (j < n && p[j] == '*') - match = i, astr = j++; - else if (j < n && (s[i] == p[j] || p[j] == '?')) - i++, j++; - else if (astr >= 0) - i = ++match, j = astr + 1; - else - return false; - } - while (j < n && p[j] == '*') - j++; - return j == n; - } -}; - -int main() {} |