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