Skip to content

Update project Euler problem 8 sol1.py small off by one error #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2019

Conversation

SandersLin
Copy link
Contributor

small off by one error. Boundary condition: if len(number) =13 , we would need to check exactly 1 combination, namely the number itself. However for i in range(len(number)-13): will iterate 0 times.

small off by one error. Boundary condition: if len(number) =13 , we would need to check exactly 1 combination, namely number itself. However  for i in range(len(number)-13): will iterate 0 times.
@SandersLin SandersLin changed the title Update sol1.py small off by one error Update project Euler problem 8 sol1.py small off by one error Dec 6, 2018
@poyea poyea merged commit 9417091 into TheAlgorithms:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants