project_euler/problem_47/sol1.py#2150
Conversation
Not sure if this should be formatted differently. I'm open to ideas!
Ran code through `black`, `flake8`, and `doctest`. Added some type hints. `doctest` is finicky on sets, so I had to sort and reformat as set to pass those tests.
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 11d27c20-b5b0-11ea-aae7-0b05fcc524af |
|
I don't know how to fix this, lol. I ran it through black, flake8, etc. Seemed to pass, but I'm happy to make any required changes. |
Nice. Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: a434acc0-b617-11ea-aaf6-456b40a357ff |
Looks good Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 87bbf060-b619-11ea-aaf6-456b40a357ff |
Okay, this should work. Thank you for the reminder on map(), filter(), reduce(). Co-authored-by: Christian Clauss <cclauss@me.com>
My IDE needs a spellchecker. Or, lighter comment font. Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
This means that `results = run(N)` should be updated to `results = run(n)`, correct? Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 883103e0-b61a-11ea-aaf6-456b40a357ff |
Looks good! Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: c76f0c50-b61a-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: f76aadb0-b61a-11ea-aaf6-456b40a357ff |
Works for me! I spent way too much time getting this to pass doctest, so any improvement is welcome. Co-authored-by: Christian Clauss <cclauss@me.com>
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 050e3c60-b61c-11ea-aaf6-456b40a357ff |
Added some suggested changes from the pull request: * Updated tests outputs in `unique_prime_factors` function. * Changed `@lru_cache(maxsize=5)` to `@lru_cache(maxsize=None)` * Removed duplicate `return` line in `equality` function * Changed `i` to `base` in run function. * Added some commentary to `run()` function. * Replaced `group = list(map(lambda x: base + x, [i for i in range(n)]))` with `group = [base + i for i in range(n)]`
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 36f32540-b61e-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: bcae1840-b626-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 4a7e0da0-b62d-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 35627780-b63c-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 43155630-b642-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: 0eda40f0-b643-11ea-aaf6-456b40a357ff |
|
Hey @MarkMoretto, TravisCI finished with status TravisBuddy Request Identifier: fa25d970-b643-11ea-aaf6-456b40a357ff |
* Create __init__.py * Initial commit Not sure if this should be formatted differently. I'm open to ideas! * Completing testing/updates Ran code through `black`, `flake8`, and `doctest`. Added some type hints. `doctest` is finicky on sets, so I had to sort and reformat as set to pass those tests. * Update project_euler/problem_47/sol1.py Nice. Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Looks good Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Okay, this should work. Thank you for the reminder on map(), filter(), reduce(). Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py My IDE needs a spellchecker. Or, lighter comment font. Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py This means that `results = run(N)` should be updated to `results = run(n)`, correct? Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Looks good! Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update project_euler/problem_47/sol1.py Works for me! I spent way too much time getting this to pass doctest, so any improvement is welcome. Co-authored-by: Christian Clauss <cclauss@me.com> * Update sol1.py Added some suggested changes from the pull request: * Updated tests outputs in `unique_prime_factors` function. * Changed `@lru_cache(maxsize=5)` to `@lru_cache(maxsize=None)` * Removed duplicate `return` line in `equality` function * Changed `i` to `base` in run function. * Added some commentary to `run()` function. * Replaced `group = list(map(lambda x: base + x, [i for i in range(n)]))` with `group = [base + i for i in range(n)]` * Update sol1.py * Trailing whitespace * Update sol1.py * Update __init__.py * Update sol1.py * Update __init__.py Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.