Caeden Perelli-Harris
7775de0ef7
Create number container system algorithm ( #8808 )
...
* feat: Create number container system algorithm
* updating DIRECTORY.md
* chore: Fix failing tests
* Update other/number_container_system.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update other/number_container_system.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update other/number_container_system.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* chore: Add more tests
* chore: Create binary_search_insert failing test
* type: Update typehints to accept str, list and range
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-06-08 14:40:38 +02:00
Tianyi Zheng
c93659d7ce
Fix type error in strassen_matrix_multiplication.py
( #8784 )
...
* Fix type error in strassen_matrix_multiplication.py
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-30 12:37:54 +12:00
Christian Clauss
dd3b499bfa
Rename is_palindrome.py to is_int_palindrome.py ( #8768 )
...
* Rename is_palindrome.py to is_int_palindrome.py
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-26 12:20:33 +05:30
Caeden Perelli-Harris
cfbbfd9896
Merge and add benchmarks to palindrome algorithms in the strings/ directory ( #8749 )
...
* refactor: Merge and add benchmarks to palindrome
* updating DIRECTORY.md
* chore: Fix failing tests
* Update strings/palindrome.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update palindrome.py
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-05-25 12:56:23 +02:00
Chris O
200429fc47
Dual Number Automatic Differentiation ( #8760 )
...
* Added dual_number_automatic_differentiation.py
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update maths/dual_number_automatic_differentiation.py
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-25 08:04:42 +02:00
Caeden Perelli-Harris
df88771905
Mark fetch anime and play as broken ( #8763 )
...
* updating DIRECTORY.md
* updating DIRECTORY.md
* fix: Correct ruff errors
* fix: Mark anime algorithm as broken
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-25 07:59:15 +02:00
pre-commit-ci[bot]
ce43a8ac4a
[pre-commit.ci] pre-commit autoupdate ( #8759 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.267 → v0.0.269](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.267...v0.0.269 )
- [github.com/abravalheri/validate-pyproject: v0.12.2 → v0.13](https://github.com/abravalheri/validate-pyproject/compare/v0.12.2...v0.13 )
* updating DIRECTORY.md
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-23 05:54:30 +02:00
Caeden Perelli-Harris
9b3e4028c6
Fixes broken "Create guess_the_number_search.py" ( #8746 )
2023-05-17 18:47:23 +12:00
Alexander Pantyukhin
61cfb43d2b
Add h index ( #8036 )
2023-05-17 12:21:16 +12:00
Caeden Perelli-Harris
1faf10b5c2
Correct ruff failures ( #8732 )
...
* fix: Correct ruff problems
* updating DIRECTORY.md
* fix: Fix pre-commit errors
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-14 22:03:13 +01:00
Pronoy Mandal
793e564e1d
Create maximum_subsequence.py ( #7811 )
2023-05-11 07:00:59 +12:00
pre-commit-ci[bot]
777f966893
[pre-commit.ci] pre-commit autoupdate ( #8704 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.262 → v0.0.263](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.262...v0.0.263 )
- [github.com/tox-dev/pyproject-fmt: 0.10.0 → 0.11.1](https://github.com/tox-dev/pyproject-fmt/compare/0.10.0...0.11.1 )
* updating DIRECTORY.md
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-01 23:48:56 +02:00
Himanshu Tomar
e966c5cc0f
Added minimum waiting time problem solution using greedy algorithm ( #8701 )
...
* Added minimum waiting time problem solution using greedy algorithm
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* ruff --fix
* Add type hints
* Added two more doc test
* Removed unnecessary comments
* updated type hints
* Updated the code as per the code review
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-01 12:23:03 +02:00
Christian Clauss
f6df26bf0f
Fix docstring in present_value.py ( #8702 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-05-01 06:29:42 +05:30
Christian Clauss
4c1f876567
Solving the Top k most frequent words
problem using a max-heap ( #8685 )
...
* Solving the `Top k most frequent words` problem using a max-heap
* Mentioning Python standard library solution in `Top k most frequent words` docstring
* ruff --fix .
* updating DIRECTORY.md
---------
Co-authored-by: Amos Paribocci <aparibocci@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-27 23:02:07 +05:30
pre-commit-ci[bot]
a650426350
[pre-commit.ci] pre-commit autoupdate ( #8691 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.261 → v0.0.262](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.261...v0.0.262 )
- [github.com/tox-dev/pyproject-fmt: 0.9.2 → 0.10.0](https://github.com/tox-dev/pyproject-fmt/compare/0.9.2...0.10.0 )
* updating DIRECTORY.md
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-25 06:05:45 +02:00
pre-commit-ci[bot]
d182f95646
[pre-commit.ci] pre-commit autoupdate ( #8634 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.261](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.260...v0.0.261 )
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.2.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.2.0 )
* updating DIRECTORY.md
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-10 23:43:17 +02:00
Christian Clauss
2f9b03393c
Delete queue_on_two_stacks.py which duplicates queue_by_two_stacks.py ( #8624 )
...
* Delete queue_on_two_stacks.py which duplicates queue_by_two_stacks.py
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-08 17:46:19 +05:30
pre-commit-ci[bot]
740ecfb121
[pre-commit.ci] pre-commit autoupdate ( #8611 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.259...v0.0.260 )
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0 )
- [github.com/abravalheri/validate-pyproject: v0.12.1 → v0.12.2](https://github.com/abravalheri/validate-pyproject/compare/v0.12.1...v0.12.2 )
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-04 07:00:31 +05:30
Christian Clauss
5ca7189563
Rename quantum_random.py.DISABLED.txt to quantum_random.py ( #8601 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-02 10:18:19 +05:30
Tianyi Zheng
33114f0272
Revamp md5.py
( #8065 )
...
* Add type hints to md5.py
* Rename some vars to snake case
* Specify functions imported from math
* Rename vars and functions to be more descriptive
* Make tests from test function into doctests
* Clarify more var names
* Refactor some MD5 code into preprocess function
* Simplify loop indices in get_block_words
* Add more detailed comments, docs, and doctests
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* Add type hints to md5.py
* Rename some vars to snake case
* Specify functions imported from math
* Rename vars and functions to be more descriptive
* Make tests from test function into doctests
* Clarify more var names
* Refactor some MD5 code into preprocess function
* Simplify loop indices in get_block_words
* Add more detailed comments, docs, and doctests
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* Convert str types to bytes
* Add tests comparing md5_me to hashlib's md5
* Replace line-break backslashes with parentheses
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-01 22:05:01 +02:00
Maxim Smolskiy
56a40eb3ee
Reenable files when TensorFlow supports the current Python ( #8602 )
...
* Remove python_version < "3.11" for tensorflow
* Reenable neural_network/input_data.py_tf
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Try to fix ruff
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Try to fix ruff
* Try to fix ruff
* Try to fix ruff
* Try to fix pre-commit
* Try to fix
* Fix
* Fix
* Reenable dynamic_programming/k_means_clustering_tensorflow.py_tf
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Try to fix ruff
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-01 19:43:11 +02:00
Maxim Smolskiy
3d2012c4ba
Add Project Euler problem 94 solution 1 ( #8599 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-01 17:50:08 +05:30
Maxim Smolskiy
d66e1e8732
Add Project Euler problem 800 solution 1 ( #8567 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-01 17:48:13 +05:30
Maxim Smolskiy
dc4f603dad
Add Project Euler problem 187 solution 1 ( #8182 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-01 11:17:24 +05:30
Maxim Smolskiy
adc3ccdabe
Add Project Euler problem 131 solution 1 ( #8179 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-15 18:26:03 +05:30
Maxim Smolskiy
9701e459e8
Add Project Euler problem 100 solution 1 ( #8175 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-14 11:09:36 +05:30
pre-commit-ci[bot]
8959211100
[pre-commit.ci] pre-commit autoupdate ( #8177 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.255](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.255 )
- [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1 )
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4 )
* updating DIRECTORY.md
* Fixes for new version of codespell
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-03-13 23:18:35 +01:00
pre-commit-ci[bot]
41b633a841
[pre-commit.ci] pre-commit autoupdate ( #8168 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.253 → v0.0.254](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.253...v0.0.254 )
* Rename get_top_billionaires.py to get_top_billionaires.py.disabled
* updating DIRECTORY.md
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-03-07 00:10:39 +01:00
Maxim Smolskiy
9720e6a6cf
Add Project Euler problem 117 solution 1 ( #6872 )
...
Update DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-03-02 22:21:48 +05:30
Maxim Smolskiy
069a14b1c5
Add Project Euler problem 082 solution 1 ( #6282 )
...
Update DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-03-02 10:25:47 +05:30
pre-commit-ci[bot]
ed0a581f93
[pre-commit.ci] pre-commit autoupdate ( #8107 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/isort: 5.11.4 → 5.12.0](https://github.com/PyCQA/isort/compare/5.11.4...5.12.0 )
* updating DIRECTORY.md
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-01-30 23:42:15 +01:00
Tianyi Zheng
57c12fab28
Fix mypy
errors in lorentz_transformation_four_vector.py
( #8075 )
...
* updating DIRECTORY.md
* Fix mypy errors in lorentz_transformation_four_vector.py
* Remove unused symbol vars
* Add function documentation and rewrite algorithm explanation
Previous explanation was misleading, as the code only calculates Lorentz
transformations for movement in the x direction (0 velocity in the y and
z directions) and not movement in any direction
* updating DIRECTORY.md
* Update error message for speed
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-01-26 08:13:03 +01:00
Tianyi Zheng
725731c8d2
Refactor local_weighted_learning.py
to use np.array
( #8069 )
...
* updating DIRECTORY.md
* Format local_weighted_learning.py doctests for clarity
* Refactor local_weighted_learning.py to use np.array instead of np.mat
The np.matrix class is planned to be eventually depreciated in favor of
np.array, and current use of the class raises warnings in pytest
* Update local_weighted_learning.py documentation
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-01-02 14:07:39 +01:00
Alexander Pantyukhin
c6223c71d8
add word_break dynamic approach up -> down. ( #8039 )
...
* add word_break dynamic approach up -> down.
* updating DIRECTORY.md
* Update word_break.py
fix review notes.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update word_break.py
fix review notes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix review notes
* add trie type
* Update word_break.py
add typing Any to trie.
* Update dynamic_programming/word_break.py
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
* Update dynamic_programming/word_break.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update dynamic_programming/word_break.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update dynamic_programming/word_break.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update dynamic_programming/word_break.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* fix review notes
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-12-30 06:47:40 +01:00
pre-commit-ci[bot]
d4c5b22424
[pre-commit.ci] pre-commit autoupdate ( #8037 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/MarcoGorelli/auto-walrus: v0.2.1 → v0.2.2](https://github.com/MarcoGorelli/auto-walrus/compare/v0.2.1...v0.2.2 )
- [github.com/PyCQA/isort: 5.10.1 → v5.11.3](https://github.com/PyCQA/isort/compare/5.10.1...v5.11.3 )
* updating DIRECTORY.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-12-19 23:04:34 +01:00
Alexander Pantyukhin
30277f8590
add numbers different signs algorithm. ( #8008 )
2022-12-15 17:11:32 +13:00
pre-commit-ci[bot]
40f165b789
[pre-commit.ci] pre-commit autoupdate ( #8026 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0 )
- [github.com/asottile/pyupgrade: v3.3.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.3.0...v3.3.1 )
* updating DIRECTORY.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-12-12 21:29:50 +01:00
pre-commit-ci[bot]
d141fa8838
[pre-commit.ci] pre-commit autoupdate ( #8017 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.2.2 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.2...v3.3.0 )
* updating DIRECTORY.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-12-05 21:34:24 +01:00
Alexander Pantyukhin
6a86fe4867
Add backtrack word search in matrix ( #8005 )
...
* add backtracking word search
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* review notes fixes
* additional fixes
* add tests
* small cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* small cleanup 2
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update backtracking/word_search.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update backtracking/word_search.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update backtracking/word_search.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update backtracking/word_search.py
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-11-29 19:28:47 +01:00
Christian Clauss
08c2245705
Upgrade to flake8 v6 ( #8007 )
...
* Upgrade to flake8 v6
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-29 16:56:41 +01:00
Alexander Pantyukhin
a25c53e8b0
Fix argument validation for count_1s_brian_kernighan_method ( #7994 )
...
* Fix argument validation for count_1s_brian_kernighan_method
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-20 23:59:25 +13:00
pre-commit-ci[bot]
0684ccdd69
[pre-commit.ci] pre-commit autoupdate ( #7983 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2 )
- [github.com/pre-commit/mirrors-mypy: v0.982 → v0.990](https://github.com/pre-commit/mirrors-mypy/compare/v0.982...v0.990 )
* updating DIRECTORY.md
* Update .pre-commit-config.yaml
* Downgrade to mypy v0.991 --> v0.990
* mpyp v0.991
* Update DIRECTORY.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-11-15 18:34:17 +01:00
Alexander Pantyukhin
7b2eca0243
add distribute coins ( #7975 )
...
* add distribute coins
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix review notes
* fix typehint
* fix type in TreeNode
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-10 15:49:38 +13:00
Christian Clauss
4cddb26908
atbash.py: Tighten up the benchmarks ( #7977 )
...
* atbash.py: Tighten up the benchmarks
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-10 15:41:28 +13:00
Alexander Pantyukhin
7f1a5521f4
add prefix sum ( #7959 )
...
* add prefix sum
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-04 20:30:32 +13:00
Christian Clauss
45b3383c39
Flake8: Drop ignore of issue A003 ( #7949 )
...
* Flake8: Drop ignore of issue A003
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-02 19:20:45 +01:00
pre-commit-ci[bot]
6cd7c49525
[pre-commit.ci] pre-commit autoupdate ( #7920 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.2.0 )
* updating DIRECTORY.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-31 21:33:08 +01:00
Christian Clauss
a31edd4477
Test on Python 3.11 ( #6591 )
...
* Test on Python 3.11 release candidate 2
* tensorflow; python<3.11
* tensorflow; python_version < 3.11
* tensorflow; python_version < "3.11"
* sympy, tensorflow; python_version < "3.11"
* sklearn; python_version < "3.11"
* matplotlib, pandas, qiskit
* statsmodels; python_version < "3.11"
* Bring back Pandas
* Problem deps are qiskit, statsmodels, and tensorflow
* updating DIRECTORY.md
* python-version: 3.11-dev --> 3.11
* updating DIRECTORY.md
* Add pytest --ignore to pyproject.toml
* Update build.yml
* Update pyproject.toml
* Update pyproject.toml
* Python 3.11
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-31 14:50:03 +01:00
Tianyi Zheng
39e5bc5980
Refactor bottom-up edit distance function to be class method ( #7347 )
...
* Refactor bottom-up function to be class method
* Add type hints
* Update convolve function namespace
* Remove depreciated np.float
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* Renamed function for consistency
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Chris O <46587501+ChrisO345@users.noreply.github.com>
2022-10-31 18:13:21 +13:00
happiestbee
00fc53de97
added sumset.py Fixes: #{6563} ( #6742 )
...
* Create sumset.py
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add descriptive var names
* Update maths/sumset.py
Co-authored-by: Caeden <caedenperelliharris@gmail.com>
* Update sumset.py
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Caeden <caedenperelliharris@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-30 11:49:05 +01:00
Andrey
57ccabbaeb
Update docs ( #7867 )
...
* Update docs, remove unused excludes from pre-commit
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-30 10:01:58 +01:00
Andrey
1550731cb7
Remove file-level flake8 suppression ( #7844 )
...
* Remove file-level flake8 suppression
* updating DIRECTORY.md
* Fix tests
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-29 22:45:21 +02:00
Andrey
584e743422
Fix yesqa hook ( #7843 )
...
* fix yesqa hook
* Remove redundant noqa
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-29 15:07:02 +02:00
Andrey
a9bd68d96e
Add running doctest to pytest default ( #7840 )
...
* Add default options for pytest
* updating DIRECTORY.md
* Move pytest settings to pyproject.toml
* Move coverage settings to the pyproject.toml
* Return --doctest-continue-on-failure to pytest
* Convert pytest args to list
* Update pyproject.toml
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-29 14:27:47 +02:00
Christian Clauss
19bff003aa
Adopt Python >= 3.8 assignment expressions using auto-walrus ( #7737 )
...
* Adopt Python >= 3.8 assignment expressions using auto-walrus
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-28 15:54:54 +02:00
Christian Clauss
74325d079c
Rename quantum_random.py to quantum_random.py.DISABLED.txt ( #7683 )
...
* Rename quantum_random.py to quantum_random.py.DISABLED.txt
#7682
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-26 22:08:53 +02:00
Maxim Smolskiy
d407476531
fix: increase str conversion limit where required ( #7604 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-25 06:27:03 +05:30
Maxim Smolskiy
a041b64f7a
feat: add Project Euler problem 073 solution 1 ( #6273 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-24 18:59:49 +05:30
Laukik Chahande
39a99b46f5
check whether integer is even or odd using bit manupulation ( #7099 )
...
* even_or_not file added
* Updated DIRECTORY.md
* modified DIRECTORY.md
* Update bit_manipulation/even_or_not.py
* updating DIRECTORY.md
* Rename even_or_not.py to is_even.py
* updating DIRECTORY.md
Co-authored-by: luciferx48 <laukik.22010776@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-23 19:26:22 +02:00
Christian Clauss
81ccf54c75
Rename xgboostclassifier.py to xgboost_classifier.py ( #7550 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-23 18:39:25 +05:30
Tianyi Zheng
cc10b20beb
Remove some print statements within algorithmic functions ( #7499 )
...
* Remove commented-out print statements in algorithmic functions
* Encapsulate non-algorithmic code in __main__
* Remove unused print_matrix function
* Remove print statement in __init__
* Remove print statement from doctest
* Encapsulate non-algorithmic code in __main__
* Modify algorithm to return instead of print
* Encapsulate non-algorithmic code in __main__
* Refactor data_safety_checker to return instead of print
* updating DIRECTORY.md
* updating DIRECTORY.md
* Apply suggestions from code review
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-22 13:33:51 +02:00
Tianyi Zheng
2859d4bf3a
Remove references to depreciated QasmSimulator ( #7417 )
...
* Fix typos
* Replace depreciated QasmSimulator in Deutsch-Jozsa algorithm
* Replace depreciated QasmSimulator in half adder algorithm
* Replace depreciated QasmSimulator in not gate algorithm
* Replace depreciated QasmSimulator in full adder algorithm
* Simplify qiskit import
* Make formatting more consistent
* Replace depreciated QasmSimulator in quantum entanglement algorithm
* Replace depreciated QasmSimulator in ripple adder algorithm
* Replace depreciated QasmSimulator in qubit measure algorithm
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* updating DIRECTORY.md
* updating DIRECTORY.md
* Remove qiskit import alias for clarity
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-19 22:12:44 +02:00
Nadirhan Şahin
b90ec30398
Create combination_sum.py ( #7403 )
...
* Create combination_sum.py
* Update DIRECTORY.md
* Adds doctests
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update combination_sum.py
* Update combination_sum.py
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-18 21:55:43 +02:00
pre-commit-ci[bot]
0c7c5fa7b0
[pre-commit.ci] pre-commit autoupdate ( #7387 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.0.0 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v3.0.0...v3.1.0 )
- [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.2.1...v2.2.2 )
* updating DIRECTORY.md
* Fix typo discovered by codespell
* Fix typo discovered by codespell
* Update .pre-commit-config.yaml
* Update .pre-commit-config.yaml
* Update .pre-commit-config.yaml
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-17 21:59:25 +02:00
SudhanshuSuman
7f6e0b656f
Corrected the directory of Fractional Knapsack algorithm ( #7086 )
...
* Moved fractional knapsack from 'dynamic_programming' to 'greedy_methods'
* Updated DIRECTORY.md
2022-10-16 22:41:28 +02:00
Caeden
98a4c24878
feat: Binary tree node sum ( #7020 ) ( #7162 )
...
* feat: Binary tree node sum (#7020 )
* feat: Sum of all nodes in binary tree explanation (#7020 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update data_structures/binary_tree/binary_tree_node_sum.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* refactor: Change replace method with `__iter__` overriding (#7020 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-15 14:58:09 +02:00
Dhruv Manilawala
70b60dc323
chore: remove inactive user from CODEOWNERS ( #7205 )
...
* chore: remove inactive user from CODEOWNERS
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-15 08:37:59 +02:00
GURNEET SINGH
e661b98829
Binary Search Tree Inorder Traversal Algorithm ( #6840 )
...
* Binary Search Tree Inorder Traversal
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Binary Search Tree Inorder Traversal v2
* Binary Search Tree Inorder Traversal
* Binary Search Tree Inorder Traversal
* Update inorder_tree_traversal_2022.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update inorder_tree_traversal_2022.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update inorder_tree_traversal_2022.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update data_structures/binary_tree/inorder_tree_traversal_2022.py
* Update data_structures/binary_tree/inorder_tree_traversal_2022.py
* Updated
* Updated
* Update inorder_tree_traversal_2022.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update inorder_tree_traversal_2022.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update data_structures/binary_tree/inorder_tree_traversal_2022.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Updated and removed print statement
removed the print from inorder function
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-13 14:09:01 +02:00
Christian Clauss
bae08adc86
README.md: Lose LGTM badge because we don't use it ( #7063 )
...
* README.md: Lose LGTM badge because we don't use it
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-12 20:56:07 +01:00
pre-commit-ci[bot]
0a3433eaed
[pre-commit.ci] pre-commit autoupdate ( #6940 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0 )
- [github.com/asottile/pyupgrade: v2.38.2 → v3.0.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.0.0 )
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982 )
* updating DIRECTORY.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-10 22:04:33 +02:00
Jordan Rinder
5894554d41
Add Catalan number to maths ( #6845 )
...
* Add Catalan number to maths
* updating DIRECTORY.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-08 23:28:17 +01:00
Christian Clauss
3d33b36e92
Fix pre-commit.ci: additional_dependencies: [types-requests] ( #6559 )
...
* Fix pre-commit.ci: additional_dependencies: [types-requests==2.28.11]
* updating DIRECTORY.md
* Update .pre-commit-config.yaml
* additional_dependencies: [types-requests]
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-02 21:59:17 +02:00
Maxim Smolskiy
a0b0f414ae
Add Project Euler problem 116 solution 1 ( #6305 )
...
* Add solution
* updating DIRECTORY.md
* Fix pre-commit
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
2022-09-24 18:04:00 +01:00
Satish Mishra
45d3eabeb5
Add Optimized Shell Sort ( #6225 )
...
* Add Optimized Shell Sort
* Added return type
* reformatted
* added shrink_shell.py
* ran directory generator
* Rename shrink_shell.py to shrink_shell_sort.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
2022-09-14 09:43:08 +01:00
zhexuanl
b1818af517
Add Digital Image Processing Algorithm: Local Binary Pattern ( #6294 )
...
* add algorithm local binary pattern
* fix failed test for local binary pattern
* updating DIRECTORY.md
* fix detected precommit-error
* fix precommit error
* final check
* Add descriptive name for parameters x and y
* Update digital_image_processing/filters/local_binary_pattern.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update digital_image_processing/filters/local_binary_pattern.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update digital_image_processing/filters/local_binary_pattern.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update local_binary_pattern.py
* undo changes made on get_neighbors_pixel()
* files formatted by black
* Update digital_image_processing/filters/local_binary_pattern.py
ok thanks
Co-authored-by: Christian Clauss <cclauss@me.com>
* add test for get_neighbors_pixel() function
* reviewed
* fix get_neighbors_pixel
* Update test_digital_image_processing.py
* updating DIRECTORY.md
* Create code_quality.yml
* Create code_quality.yml
* Delete code_quality.yml
* Update code_quality.yml
* Delete code_quality.yml
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-08-24 06:48:54 +02:00
Maxim Smolskiy
063a0eced9
feat: add Project Euler problem 115 solution 1 ( #6303 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-08-07 16:50:45 +05:30
Maxim Smolskiy
a69d880bb5
feat: add Project Euler problem 114 solution 1 ( #6300 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-08-07 07:37:35 +05:30
Maxim Smolskiy
97f25d4b43
feat: add Project Euler problem 587 solution 1 ( #6269 )
...
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-26 21:45:14 +05:30
Maxim Smolskiy
c45fb3c294
perf: Project Euler problem 145 solution 1 ( #6259 )
...
Improve solution (~30 times - from 900+ seconds to ~30 seconds)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-23 07:23:46 +05:30
Nikos Giachoudis
f7c58e4c4b
Unify primality checking ( #6228 )
...
* renames prime functions and occurances in comments
* changes implementation of primality testing to be uniform
* adds static typing as per conventions
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-11 22:36:57 +08:00
Christian Clauss
dad789d903
Get rid of the Union ( #6246 )
...
* Get rid of the Union
* updating DIRECTORY.md
* Get rid of the Union
* Remove the redundant pre-commit runs.
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-11 13:11:17 +02:00
Christian Clauss
0a0f4986e4
Upgrade GitHub Actions ( #6236 )
...
* Upgrade GitHub Actions
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-07 05:25:25 +02:00
Vcrostin
69cde43ca1
make DIRECTORY.md paths relative Fixes ( #6179 ) ( #6190 )
2022-06-22 12:01:05 +08:00
kugiyasan
8004671b98
Add Project Euler 68 Solution ( #5552 )
...
* updating DIRECTORY.md
* Project Euler 68 Solution
* updating DIRECTORY.md
* Project Euler 68 Fixed doctests, now at 93% coverage
* Update sol1.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: kugiyasan <kugiyasan@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
2022-05-27 03:24:23 +08:00
Maxim Smolskiy
de4d98081b
Improve Project Euler problem 145 solution 1 ( #6141 )
...
* updating DIRECTORY.md
* Improve solution
* updating DIRECTORY.md
* Fix
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-05-24 09:20:47 +08:00
Lukas
7a9b3c7292
Added average absolute deviation ( #5951 )
...
* Added average absolute deviation
* Formats program with black
* reruns updated pre commit
* Update average_absolute_deviation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-02-13 18:20:19 +01:00
Christian Clauss
f707f6d689
Upgrade to Python 3.10 ( #5992 )
...
* Upgrade to Python 3.10
* Upgrade to Python 3.10
* mypy || true
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-02-13 06:57:44 +01:00
Christian Clauss
24d3cf8244
The black formatter is no longer beta ( #5960 )
...
* The black formatter is no longer beta
* pre-commit autoupdate
* pre-commit autoupdate
* Remove project_euler/problem_145 which is killing our CI tests
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-01-30 20:29:54 +01:00
Michael Currin
7423875cef
ci: add mkdir step for mypy ( #5927 )
...
* ci: add mkdir step for mypy
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-01-26 23:35:51 +08:00
Christian Clauss
1ae5abfc3c
Replace typing.optional with new annotations syntax ( #5829 )
...
* Replace typing.optional with new annotations syntax
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-17 04:43:02 +01:00
Rohan R Bharadwaj
e9882e41ba
[mypy] Fix matrix_operation.py
( #5808 )
...
* Update matrix_operation.py
* Update mypy.ini
* Update DIRECTORY.md
* formatting
* Update matrix_operation.py
* doctest for exception
* A bit more...
2021-11-10 16:22:52 +01:00
Nivas Manduva
c3d1ff0ebd
Add Jacobi Iteration Method ( #5113 )
...
* Added Jacobi Iteration Method
Added this method in arithmetic_analysis folder. This method is used to solve system of linear equations.
* Added comments
* Added reference link
* Update jacobi_iteration_method.py
* Changes for codespell test
* Update jacobi_iteration_method.py
* Update jacobi_iteration_method.py
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* updating DIRECTORY.md
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update jacobi_iteration_method.py
* Update jacobi_iteration_method.py
* Update jacobi_iteration_method.py
* fix styles
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
2021-11-09 22:40:57 +08:00
Maxim Smolskiy
0b8d6d70ce
Add Project Euler problem 205 solution 1 ( #5781 )
...
* updating DIRECTORY.md
* Add solution
* updating DIRECTORY.md
* Fix
* Fix
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-09 22:25:29 +08:00
Dylan Buchi
ac4bdfd66d
[mypy] Fix type annotations in graphs/boruvka.py
( #5794 )
...
* Fix type annotations in boruvka.py
* Remove graphs/boruvka.py|
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-08 21:47:09 +08:00
Rohan R Bharadwaj
db5aa1d188
Add equated_monthly_installments.py in Financials ( #5775 )
...
* Add equated_monthly_installments.py in Financials
* Formatting
* More formatting, Descriptive names
* Errors with name change
* Formatting
* Formatting, Naming Error
* dedent
* Update DIRECTORY.md
2021-11-07 15:40:23 +01:00
Maxim Smolskiy
1a43c92c77
Improve Project Euler problem 043 solution 1 ( #5772 )
...
* updating DIRECTORY.md
* Fix typo
* Improve solution
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-05 20:44:24 +01:00
Souvik Ghosh
0ea5c734e1
sock_merchant.py: Matching socks by color ( #5761 )
...
* Python file for finding number of pairs
* updating DIRECTORY.md
* fixed iterative_pair.py
* further fixed with type casting
* fixed naming conventions
* further fixed with naming convention
* documented done
* build issue fixed
* updating DIRECTORY.md
* Revert "documented done"
This reverts commit 3be15ca374
.
* Update canny.py
* Update test_digital_image_processing.py
* Update sobel_filter.py
* requirements.txt fixed
* keras<2.7.0
* Update sock_merchant.py
* doctest with black fixed
* Update sock_merchant.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-11-03 21:24:50 +01:00
Christian Clauss
74f4967126
Fix comment ( #5742 )
...
* Fix comment
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-01 18:07:47 +01:00
Edward Nuno
94f38dd88c
[mypy] Fix type annotations for linked_stack.py ( #5576 )
...
* Fix type annotations for linked_stack.py
* Replace Optional with inline union type
* Rename linked_stack to stack_with_singly_linked_list
* Rename stack_using_dll to stack_with_doubly_linked_list
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-31 17:03:03 +01:00