-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
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
Add Project Euler problem 082 solution 1 #6282
Add Project Euler problem 082 solution 1 #6282
Conversation
…thub.com/MaximSmolskiy/Python into add-project-euler-problem-082-solution-1
@cclauss @dhruvmanila please review |
@dhruvmanila please review |
1 similar comment
@dhruvmanila please review |
@dhruvmanila please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor nitpicks and it's good to go! Thanks for your patience!
project_euler/problem_082/sol1.py
Outdated
import os | ||
|
||
|
||
def solution(filename: str = "p082_matrix.txt") -> int: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def solution(filename: str = "p082_matrix.txt") -> int: | |
def solution(filename: str = "input.txt") -> int: |
Simple name is better, we're already in the problem directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed
project_euler/problem_082/sol1.py
Outdated
m = len(matrix) | ||
n = len(matrix[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m = len(matrix) | |
n = len(matrix[0]) | |
rows = len(matrix) | |
cols = len(matrix[0]) |
I think this would be better for posterity. Please update wherever else is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed
Update DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Update DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Describe your change:
Add Project Euler problem 082 solution 1:
Checklist:
Fixes: #{$ISSUE_NO}
.