mirror of
https://bitbucket.org/Mattrixwv/pyclasses.git
synced 2025-12-06 18:33:58 -05:00
Fixed bug with missing 9 in isPandigitalFull
This commit is contained in:
@@ -71,7 +71,7 @@ def isPandigitalFull(numStr: str, bottom: int, top: int) -> bool:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
#Make sure that all of the needed characters are in the string exactly one time
|
#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
|
#Make sure there is exactly one of this number contained in the string
|
||||||
if(numStr.count(str(cnt)) != 1):
|
if(numStr.count(str(cnt)) != 1):
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user