From 82338785838cc4a2d2e855fff75d87b670890e4b Mon Sep 17 00:00:00 2001 From: Swastika Gupta <64654203+Swastyy@users.noreply.github.com> Date: Sun, 1 Aug 2021 22:33:50 +0530 Subject: [PATCH] Update backtracking/wildcard_matching.cpp Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com> --- backtracking/wildcard_matching.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();