Add solution for Project Euler problem 67 (#5519) · zinating/algorithms-python@11a15cc · GitHub
Skip to content

Commit 11a15cc

Browse files
Add solution for Project Euler problem 67 (TheAlgorithms#5519)
* New solution for Euler problem 67 A faster and memory efficient solution based on the template of sol1.py. Modified the solution to be more memory efficient while reading and generating the array and during the solution finding. No conditions and straightforward logic. * added return type hint * Update project_euler/problem_067/sol2.py Preferring comprehensions over map Co-authored-by: Christian Clauss <cclauss@me.com> * Update sol2.py Self explanatory variable names * Updated sol2 to problem 067 in directory * Update project_euler/problem_067/sol2.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_067/sol2.py Co-authored-by: Christian Clauss <cclauss@me.com> * Fixed extra line Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 477cc3f commit 11a15cc

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

DIRECTORY.md

Lines changed: 1 addition & 0 deletions

project_euler/problem_067/sol2.py

Lines changed: 39 additions & 0 deletions

0 commit comments

Comments
 (0)