From 6d99d80635479e531de88f5c24d07a8806807d9d Mon Sep 17 00:00:00 2001 From: chalanika Date: Sun, 23 Jun 2019 10:11:51 +0530 Subject: [PATCH 1/2] remove count --- Question1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Question1.py b/Question1.py index 110057d..d8379ca 100644 --- a/Question1.py +++ b/Question1.py @@ -3,7 +3,7 @@ def search(pat, txt): M = len(pat) N = len(txt) c = 0 - count = 8; + list = [] # A loop to slide pat[] one by one */ for i in range(N - M + 1): From 26cb189c1e50768b56e93c5311f6341d3c65feee Mon Sep 17 00:00:00 2001 From: chalanika sewwandi <43123589+chalanika@users.noreply.github.com> Date: Sun, 23 Jun 2019 19:49:13 +0530 Subject: [PATCH 2/2] Update Question1.py m added --- Question1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Question1.py b/Question1.py index d8379ca..c29cd28 100644 --- a/Question1.py +++ b/Question1.py @@ -3,7 +3,7 @@ def search(pat, txt): M = len(pat) N = len(txt) c = 0 - + m=4; list = [] # A loop to slide pat[] one by one */ for i in range(N - M + 1):