Tianyi Zheng
69f20033e5
Remove duplicate implementation of Collatz sequence ( #8836 )
...
* updating DIRECTORY.md
* Remove duplicate implementation of Collatz sequence
* updating DIRECTORY.md
* Add suggestions from PR review
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-06-26 11:15:31 +02:00
Christian Clauss
9200a2e543
from __future__ import annotations ( #2464 )
...
* from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-23 13:30:13 +02:00
Christian Clauss
1f8a21d727
Tighten up psf/black and flake8 ( #2024 )
...
* Tighten up psf/black and flake8
* Fix some tests
* Fix some E741
* Fix some E741
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-05-22 08:10:11 +02:00
TheSuperNoob
1608d75351
Improve collatz_sequence algorithm ( #1726 )
...
- Add more doctests and type checking to make sure only natural
numbers are used
- Simplified the algorithm slightly
This new verison is also between 10-15% faster for really
long sequences
2020-02-07 02:30:08 +05:30
ArjunwadkarAjay
bc52aa6d4d
Some grammatical and spelling corrections ( #1475 )
2019-10-27 18:37:25 +01:00
William Zhang
9eac17a408
psf/black code formatting ( #1277 )
2019-10-05 10:14:13 +05:00
Sanders Lin
9c0cbe3307
Create collatz_sequence.py ( #639 )
...
* Create collatz_sequence.py
* Update and rename collatz_sequence.py to maths/collatz_sequence.py
* doctest
2019-08-01 23:54:03 +08:00