mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
3d4172307f
* 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> |
||
---|---|---|
.. | ||
problem_01 | ||
problem_02 | ||
problem_03 | ||
problem_04 | ||
problem_05 | ||
problem_06 | ||
problem_07 | ||
problem_08 | ||
problem_09 | ||
problem_10 | ||
problem_11 | ||
problem_12 | ||
problem_13 | ||
problem_14 | ||
problem_15 | ||
problem_16 | ||
problem_17 | ||
problem_18 | ||
problem_19 | ||
problem_20 | ||
problem_21 | ||
problem_22 | ||
problem_23 | ||
problem_24 | ||
problem_25 | ||
problem_26 | ||
problem_27 | ||
problem_28 | ||
problem_29 | ||
problem_30 | ||
problem_31 | ||
problem_32 | ||
problem_33 | ||
problem_36 | ||
problem_40 | ||
problem_42 | ||
problem_47 | ||
problem_48 | ||
problem_52 | ||
problem_53 | ||
problem_56 | ||
problem_67 | ||
problem_76 | ||
problem_99 | ||
problem_234 | ||
problem_551 | ||
README.md |
ProjectEuler
Problems are taken from https://projecteuler.net/.
Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Project Euler is ideal for mathematicians who are learning to code.
Here the efficiency of your code is also checked. I've tried to provide all the best possible solutions.
For description of the problem statements, kindly visit https://projecteuler.net/show=all