diff --git a/backtracking/wildcard_matching.cpp b/backtracking/wildcard_matching.cpp index 36eb2d0f5..9ecb1d3b0 100644 --- a/backtracking/wildcard_matching.cpp +++ b/backtracking/wildcard_matching.cpp @@ -36,7 +36,7 @@ namespace wildcard_matching { * @returns 1 if pattern matches with matching string otherwise 0 */ std::vector> dpTable(1000, std::vector(1000, -1)); -uint32_t wildcard_matching(std::string s, std::string p, uint32_t pos1, +bool wildcard_matching(std::string s, std::string p, uint32_t pos1, uint32_t pos2) { uint32_t n = s.length(); uint32_t m = p.length();