From 848e8695bf2cdafdd8c5a2b8310cf694835024a5 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Wed, 20 Oct 2021 16:20:51 -0400 Subject: [PATCH] Fixed bug with missing 9 in isPandigitalFull --- StringAlgorithms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StringAlgorithms.py b/StringAlgorithms.py index 58388e5..4138c41 100644 --- a/StringAlgorithms.py +++ b/StringAlgorithms.py @@ -71,7 +71,7 @@ def isPandigitalFull(numStr: str, bottom: int, top: int) -> bool: return False #Make sure that all of the needed characters are in the string exactly one time - for cnt in range(bottom, top): + for cnt in range(bottom, top + 1): #Make sure there is exactly one of this number contained in the string if(numStr.count(str(cnt)) != 1): return False