Fixed bug with missing 9 in isPandigitalFull

This commit is contained in:
2021-10-20 16:20:51 -04:00
parent 8dbb52db85
commit 848e8695bf

View File

@@ -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