Skip to content

Project Euler 62 Solution #3029

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 11 commits into from
Oct 15, 2020
Prev Previous commit
Next Next commit
Remove parenthesis from if statement
  • Loading branch information
peteryao7 committed Oct 8, 2020
commit 022fb765a00cbee78a6dd5a03c50c479a7e00098
2 changes: 1 addition & 1 deletion project_euler/problem_62/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def solution() -> int:
digits = get_digits(num)
freqs[digits].append(num)

if (len(freqs[digits]) == 5):
if len(freqs[digits]) == 5:
base = freqs[digits][0] ** 3
return base

Expand Down