Christian Clauss and github-actions
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 and github-actions
b05081a717
Update and rename bin_to_octal.py to binary_to_octal.py ( #2449 )
...
* Update and rename bin_to_octal.py to binary_to_octal.py
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-09-19 14:58:08 +08:00
Christian Clauss
697495b017
Fix copy / paste oversight ( #2448 )
2020-09-19 07:25:18 +02:00
Christian Clauss and github-actions
363858ef3b
hyphen_files = [file for file in filepaths if "-" in file] ( #2447 )
...
* hyphen_files = [file for file in filepaths if "-" in file]
* updating DIRECTORY.md
* Rename recursive-quick-sort.py to recursive_quick_sort.py
* updating DIRECTORY.md
* Rename aho-corasick.py to aho_corasick.py
* updating DIRECTORY.md
* Rename polynom-for-points.py to polynom_for_points.py
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-09-19 07:13:10 +02:00
Christian Clauss and github-actions
ee914c751c
Delete sleep_sort.py ( #2352 )
...
* Delete sleep_sort.py
A silly algorithm designed to waste time. #2350 demonstrates that it is a 20+ second denial of service attack on every Travis CI run that we do.
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-08-25 15:48:04 +02:00
Christian Clauss and github-actions
e77600638d
Travis CI: Identify our ten slowest pytests ( #2350 )
...
* Travis CI: Identify our ten slowest tests
https://howchoo.com/g/mtblodnjzjc/how-to-measure-unit-test-execution-times-in-pytest helps us to find the individual tests that are slowing down our Travis CI checks.
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-08-25 15:47:06 +02:00
Christian Clauss and github-actions
8817a3e667
Delete natural_language_processing ( #2317 )
...
* Delete natural_language_processing
This file is useless.
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-08-19 21:53:56 +02:00
Christian Clauss and github-actions
e49ece95a4
PIL.Image.point() takes an int, not a float ( #2284 )
...
* PIL.Image.point() takes an int, not a float
@furkanatesli Trying to remove these warnings from our Travis CI build logs...
https://travis-ci.com/github/TheAlgorithms/Python/builds/178602503#L809
* fixup! Format Python code with psf/black push
* Revert changes to change_brightness.py
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-08-07 21:20:56 +02:00
Christian Clauss and github-actions
1fb1fdd130
requirements.txt: Unpin numpy ( #2287 )
...
* requirements.txt: Unpin numpy
* fixup! Format Python code with psf/black push
* Less clutter
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-08-06 17:50:23 +02:00
Christian Clauss and github-actions
4535283554
Re-blacken ( #2246 )
...
* Avoid double spaces
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-08-01 09:23:23 +05:30
23cbe4c352
black matrix_operation.py ( #2199 )
...
* black matrix_operation.py
* updating DIRECTORY.md
* Update matrix_operation.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: vinayak <itssvinayak@gmail.com >
2020-07-14 13:53:14 +05:30
Christian Clauss
2c75a7b3dd
Numerous fixes to directed_and_undirected_(weighted)_graph.py ( #2182 )
...
* Numerous fixes to directed_and_undirected_(weighted)_graph.py
* dict.keys() is almost never need in modern Python
2020-07-06 19:31:04 +02:00
Christian Clauss and github-actions
5f4da5d616
isort --profile black . ( #2181 )
...
* updating DIRECTORY.md
* isort --profile black .
* Black after
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-07-06 09:44:19 +02:00
Christian Clauss
cd3e8f95a0
isort --profile black --recursive . ( #2170 )
...
* isort --profile black --recursive .
* Update codespell.yml
* typo: vertices
* typo: Explanation
* typo: Explanation
* Fix typos
2020-07-06 08:48:18 +05:30
Christian Clauss and github-actions
2c98dce057
Rename shortest_job_first_algorithm.py to shortest_job_first.py ( #2164 )
...
* Rename shortest_job_first_algorithm.py to shortest_job_first.py
* updating DIRECTORY.md
* Minor tweek to round_robin.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-07-04 00:56:40 +05:30
Christian Clauss and github-actions
8ab84fd794
Only one carriage return ( #2155 )
...
* updating DIRECTORY.md
* touch
* fixup! Format Python code with psf/black push
* Update word_frequency_functions.py
* updating DIRECTORY.md
* Update word_frequency_functions.py
* Update lfu_cache.py
* Update sol1.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-25 19:15:30 +02:00
Christian Clauss and github-actions
5b6ebf8f12
Add doctests to radix_sort() ( #2148 )
...
* Add doctests to radix_sort()
* fixup! Format Python code with psf/black push
* Update radix_sort.py
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-23 15:37:24 +02:00
Christian Clauss and github-actions
cbbaa98684
hamming_code.py: Reduce McCabe code complexity ( #2140 )
...
* hamming_code.py: Reduce McCabe code complexity
As discussed in #2128
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-22 14:18:57 +02:00
Christian Clauss and github-actions
fdc5bee7af
Euler problem 551 sol 1: Reduce McCabe code complexity ( #2141 )
...
* Euler problem 551 sol 1: Reduce McCabe code complexity
As discussed in #2128
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-22 14:16:12 +02:00
Christian Clauss and github-actions
f97af65579
Blacken our code ( #2125 )
...
* Blacken
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-17 06:59:38 +08:00
Christian Clauss and github-actions
4e8a0d924e
CONTRIBUTING.md: Update flake8 command ( #2124 )
...
* CONTRIBUTING.md: Update flake8 command
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-16 16:33:17 +02:00
b9e5259aeb
Fix long line, tests ( #2123 )
...
* Fix long line
* updating DIRECTORY.md
* Add doctest
* ...
* ...
* Update tabu_search.py
* space
* Fix doctest
>>> find_neighborhood(['a','c','b','d','e','a']) # doctest: +NORMALIZE_WHITESPACE
[['a','e','b','d','c','a',90], [['a','c','d','b','e','a',90],
['a','d','b','c','e','a',93], ['a','c','b','e','d','a',102],
['a','c','e','d','b','a',113], ['a','b','c','d','e','a',93]]
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: John Law <johnlaw.po@gmail.com >
2020-06-16 14:29:13 +02:00
Christian Clauss and github-actions
9316e7c014
Set the Python file maximum line length to 88 characters ( #2122 )
...
* flake8 --max-line-length=88
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-16 10:09:19 +02:00
Christian Clauss and github-actions
0b028aa32a
Fix line break after binary operator ( #2119 )
...
* Fix line break after binary operator
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-15 15:47:02 +02:00
Christian Clauss and github-actions
b9185bebd6
Create natural_language_processing ( #2116 )
...
* Create natural_language_processing
Closes #2115
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-15 09:55:41 +02:00
Christian Clauss
ae9d0f9196
Fix indentation ( #2097 )
2020-06-14 14:28:00 +08:00
Christian Clauss and github-actions
657d46101d
calc_profit always returns an int ( #2090 )
...
* calc_profit always returns an int
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-06-11 16:36:09 +02:00
Christian Clauss and github-actions
1e8fe8efcf
circular_linked_list: Add more len() tests ( #2051 )
...
* circular_linked_list: Add more len() tests
* fixup! Format Python code with psf/black push
* prepend()
* updating DIRECTORY.md
* Fix decrementation of self.length
* Add empty list tests
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-31 13:06:57 +05:30
Christian Clauss and github-actions
fa358d614a
current_weather, weather_forecast, weather_onecall ( #2048 )
...
* current_weather, weather_forecast, weather_onecall
* updating DIRECTORY.md
* weather_forecast("Kolkata, India")
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-30 23:47:26 +05:30
Christian Clauss and github-actions
dc4049ee28
.travis.yml: Revert to using autoblack ( #2033 )
...
* .travis.yml: Revert to using autoblack
Our autoblack GitHub Action will get us to black compliance without forcing each contributor to learn about, install, and use psf/black on every pull request.
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-24 20:38:28 +05:30
Christian Clauss and github-actions
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
Christian Clauss and github-actions
0e6e5056b3
singly_linked_list.py: psf/black ( #2008 )
...
* singly_linked_list.py: psf/black
* updating DIRECTORY.md
* Update singly_linked_list.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-19 13:54:25 +02:00
Christian Clauss and github-actions
1c62bd10c1
Precision must be a nonnegative integer ( #2013 )
...
* Precision must be a nonnegative integer
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-19 15:46:20 +05:30
38d2e98665
hill_cipher.py: gcd() -> greatest_common_divisor() ( #1997 )
...
* hill_cipher.py: gcd() -> greatest_common_divisor()
* fixup! Format Python code with psf/black push
* import string
* updating DIRECTORY.md
* Change matrix to array
Add more tests
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: John Law <johnlaw.po@gmail.com >
2020-05-18 13:05:51 +02:00
Christian Clauss and github-actions
565060aa99
actions/setup-python@v2 ( #1986 )
...
* actions/setup-python@v2
* fixup! Format Python code with psf/black push
* Update autoblack.yml
* updating DIRECTORY.md
* Update codespell.yml
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-16 08:49:56 +02:00
Christian Clauss and github-actions
69171a9ac3
The new version of flake8 is linting f-strings ( #1976 )
...
* The new version of flake8 is linting f-strings
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-13 20:03:28 +02:00
Christian Clauss and github-actions
a7cd633bb6
Fix astar ( #1966 )
...
* Fix astar
Single character variable names are old school.
* fixup! Format Python code with psf/black push
* Tuple
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-10 20:49:40 +05:30
Christian Clauss and github-actions
3d9bb051a8
Travis CI: Strict flake8 ( #1962 )
...
* Travis CI: Strict flake8
Turn the screws all the way down.
* updating DIRECTORY.md
* Switch from flake8 --select to --ignore
* Quotes
* IGNORE=E123,E203,E265,E266,E302,E401,E402,E712,E731,E741,E743,F811,F841,W291,W293,W503
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-10 08:06:42 +02:00
Christian Clauss and github-actions
8b55a143fa
Travis CI: lint for useless backslashes ( #1961 )
...
* Travis CI: lint for useless backslashes
* updating DIRECTORY.md
* flake8 --max-complexity=25
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-09 13:24:25 +02:00
Christian Clauss and github-actions
08c8bb5ad5
Deal with maps ( #1945 )
...
* Deal with maps
Try with the search term "pizza" to see why this was done in #1932
* fixup! Format Python code with psf/black push
* Update armstrong_numbers.py
* updating DIRECTORY.md
* Update crawl_google_results.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-06 03:32:40 +02:00
Christian Clauss and github-actions
d1b25760bc
Fix psf/black issues than fail the build ( #1935 )
...
* Fix psf/black issues than fail the build
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-03 23:58:44 +02:00
Christian Clauss and github-actions
6acd7fb5ce
Wrap lines that go beyond GitHub Editor ( #1925 )
...
* Wrap lines that go beyond GiHub Editor
* flake8 --count --select=E501 --max-line-length=127
* updating DIRECTORY.md
* Update strassen_matrix_multiplication.py
* fixup! Format Python code with psf/black push
* Update decision_tree.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-01 23:36:35 +02:00
Christian Clauss and github-actions
1ad78b2663
Fix invalid escape sequence in binary_search_tree.py ( #1920 )
...
* Fix invalid escape sequence in binary_search_tree.py
data_structures/binary_tree/binary_search_tree.py:156
/home/travis/build/TheAlgorithms/Python/data_structures/binary_tree/binary_search_tree.py:156: DeprecationWarning: invalid escape sequence \
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-01 02:17:11 +05:30
Christian Clauss and github-actions
8cb957f893
Blacken one_dimensional.py ( #1911 )
...
* Blacken one_dimensional.py
* updating DIRECTORY.md
* Travis CI: Upgrade to Ubuntu 20.04 LTS Focal
Ubuntu 20.04 LTS (Focal Fossa) https://releases.ubuntu.com/focal
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-04-27 18:40:46 +02:00
Christian Clauss
b560b76002
Add cellular_automata directory ( #1902 )
...
Related to https://github.com/TheAlgorithms/Python/issues/1613#issuecomment-618175224 @8Dion8 Your review please. Once this land, this directory would be a great place for you to add your work.
2020-04-23 11:57:32 +02:00
Christian Clauss and github-actions
24b2aecef3
Create Python/bit_manipulation/README.md ( #1897 )
...
* Create Python/bit_manipulation/README.md
To open up a new area of algorithms...
@Shrutikabansal I hope that you will contribute some of your work here.
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-04-20 20:19:27 +02:00
Christian Clauss and github-actions
d48661e35d
CONTRIBUTING.md: What is an Algorithm? ( #1885 )
...
* CONTRIBUTING.md: What is an Algorithm?
We are seeing too many _how-to examples_ for using existing Python packages so we should define what we want algorithm contributions to be.
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-04-17 12:42:00 +02:00
f6ee518ee1
Rename math/add.py to maths/add.py ( #1857 )
...
* Rename math/add.py to maths/add.py
* fixup! Format Python code with psf/black push
* Fix sum to add
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: John Law <johnlaw.po@gmail.com >
2020-04-13 07:50:46 +02:00
Christian Clauss and github-actions
7ebe2b9593
Test the exception conditions ( #1853 )
...
* Text exception conditions
These are ValueErrors, not AttributeErrors.
* fixup! Format Python code with psf/black push
* Update perceptron.py
* Update perceptron.py
* Update perceptron.py
* Revert the test
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-04-13 02:10:21 +02:00
Christian Clauss and github-actions
8bf380ce7d
README.md: sumab() --> sum_ab() for consistancy ( #1855 )
...
* README.md: sumab() --> sum_ab() for consistancy
consistency
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-04-12 17:18:30 +02:00
4103c9fde4
Update FUNDING.yml ( #1829 )
...
* Update FUNDING.yml
* fixup! Format Python code with psf/black push
* Update FUNDING.yml
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Anup Kumar Panwar <1anuppanwar@gmail.com >
2020-04-10 14:55:58 +05:30
Christian Clauss
8f2c9932e0
CONTRIBUTING.md: Fix comments about the black formatter ( #1841 )
...
* CONTRIBUTING.md: Fix comments about the black formatter
Fixes #1840
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
2020-04-08 12:27:11 +02:00
Christian Clauss and github-actions
3d129a4964
Create Python/quantum/README.md ( #1834 )
...
* Create Python/quantum/README.md
Started at #1831
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-04-07 11:58:23 +02:00
Christian Clauss and github-actions
f17e9822b0
psf/black changes to next_greater_element.py ( #1817 )
...
* psf/black changes to next_greater_element.py
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-03-28 07:24:59 +01:00
Christian Clauss and github-actions
ab3400bfad
Travis CI: Fix Travis linter errors ( #1802 )
...
* Travis CI: Fix Travis linter errors
* fixup! Format Python code with psf/black push
* Update .travis.yml
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-03-14 23:55:13 +01:00
Christian Clauss
d547d0347b
directory_writer: actions/checkout@v1 # Use v1, NOT v2 ( #1799 )
...
* directory_writer: actions/checkout@v1 # Use v1, NOT v2 (#1796
* updating DIRECTORY.md
2020-03-14 07:33:14 +01:00
Christian Clauss and github-actions
b1377f0e57
autoblack: actions/checkout@v1 # Use v1, NOT v2 ( #1796 )
...
* autoblack: actions/checkout@v1 # Use v1, NOT v2
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-03-13 09:23:38 +01:00
Christian Clauss
a9f73e318c
Added SkipList ( #1781 )
...
* Added SkipList
* Add missing type hints and doctests
* Add missing doctest
* Tighten up doctest
Co-authored-by: Christian Clauss <cclauss@me.com >
2020-03-05 17:57:43 +01:00
Christian Clauss
652b891a75
Travis CI: Upgrade to Python 3.8 ( #1783 )
...
* Travis CI: Upgrade to Python 3.8
* updating DIRECTORY.md
* Tensorflow is not yet compatible with Python 3.8
* Disable k_means_clustering_tensorflow.py
* updating DIRECTORY.md
* Disable gan.py
* updating DIRECTORY.md
* Disable input_data.py
* updating DIRECTORY.md
* pip install a current version of six
2020-02-23 04:23:00 +01:00
Christian Clauss
59bf115aa1
uses: actions/checkout@v2 ( #1779 )
...
* uses: actions/checkout@v2
* fixup! Format Python code with psf/black push
2020-02-21 15:32:35 +05:30
Christian Clauss and John Law
670f952aa6
Travis CI: Don’t allow bare exceptions ( #1734 )
...
* Travis CI: Don’t allow bare exceptions
* fixup! Format Python code with psf/black push
* except IOError:
* except IOError:
* Update hamming_code.py
* IndexError
* Get rid of the nonsense logic
Co-authored-by: John Law <johnlaw.po@gmail.com >
2020-02-07 22:02:08 +02:00
Christian Clauss
bef74d0ecc
Fix typo ( #1718 )
...
* Fix typo
* updating DIRECTORY.md
2020-01-28 05:09:47 +08:00
Christian Clauss
46ac50a28e
codespell --quiet-level=2 ( #1711 )
...
* codespell --quiet-level=2
Suppress the BINARY FILE warnings
* fixup! Format Python code with psf/black push
2020-01-24 00:21:51 +08:00
Christian Clauss
bfcb95b297
Create codespell.yml ( #1698 )
...
* fixup! Format Python code with psf/black push
* Create codespell.yml
* fixup! Format Python code with psf/black push
2020-01-18 13:24:33 +01:00
Christian Clauss and John Law
b492e64417
Create pull_request_template.md ( #1684 )
...
* Create pull_request_template.md
* fixup! Format Python code with psf/black push
* Update pull_request_template.md
* updating DIRECTORY.md
* Update pull_request_template.md
* Update pull_request_template.md
* Update pull_request_template.md
* Update pull_request_template.md
* Update pull_request_template.md
* Typos and formatting
Co-authored-by: John Law <johnlaw.po@gmail.com >
2020-01-14 02:56:06 +08:00
Christian Clauss
f9e1a16a98
git add DIRECTORY.md ( #1674 )
...
* git add DIRECTORY.md
* updating DIRECTORY.md
2020-01-10 09:08:49 +08:00
Christian Clauss
e849578e59
Update and rename lca.py to lowest_common_ancestor.py ( #1664 )
...
* Update and rename lca.py to lowest_common_ancestor.py
* fixup! Format Python code with psf/black push
2020-01-08 21:15:41 +08:00
Christian Clauss
1f2b1a88ab
Typos in comments in hill_climbing.py ( #1667 )
...
* Typos in comments in hill_climbing.py
* fixup! Format Python code with psf/black push
2020-01-08 21:06:53 +08:00
Christian Clauss
1d606d8772
Dijkstra's Bankers algorithm ( #1650 )
...
* Dijkstra's Bankers algorithm
@bluedistro, Your review please. A second shot at #1645
Implementation of the Dijkstra's Banker's algorithm with test examples and a comprehensible description.
* fixup! Format Python code with psf/black push
* Delete back_propagation_neural_network.py
* Create back_propagation_neural_network.py
* fixup! Format Python code with psf/black push
2020-01-03 22:26:16 +08:00
Christian Clauss
28419cf839
pyupgrade --py37-plus **/*.py ( #1654 )
...
* pyupgrade --py37-plus **/*.py
* fixup! Format Python code with psf/black push
2020-01-03 22:25:36 +08:00
Christian Clauss
34c808b375
actions/checkout@v2 ( #1643 )
...
* actions/checkout@v2
https://github.com/actions/checkout/releases
* fixup! Format Python code with psf/black push
2019-12-26 19:50:12 +08:00
Christian Clauss
b9bff8f3a7
Remove \r from strings ( #1622 )
...
* Remove \r from strings
* Satisfy tensorflow with numpy>=1.17.4
2019-12-10 15:53:50 +01:00
Christian Clauss
26b0803319
Simplify sudoku.is_completed() using builtin all() ( #1608 )
...
* Simplify sudoku.is_completed() using builtin all()
Simplify __sudoku.is_completed()__ using Python builtin function [__all()__](https://docs.python.org/3/library/functions.html#all ).
* fixup! Format Python code with psf/black push
* Update sudoku.py
* fixup! Format Python code with psf/black push
* Old style exception -> new style for Python 3
* updating DIRECTORY.md
* Update convex_hull.py
* fixup! Format Python code with psf/black push
* e.args[0] = "msg"
* ValueError: could not convert string to float: 'pi'
* Update convex_hull.py
* fixup! Format Python code with psf/black push
2019-12-08 22:42:17 +01:00
Christian Clauss
2fb6f786ce
Typo in a comment ( #1603 )
2019-11-29 00:23:37 +05:30
Christian Clauss
4baf3972e1
GitHub Action to mark stale issues and pull requests ( #1594 )
2019-11-27 18:30:21 +08:00
Christian Clauss
ec7bc7c7cd
Tabs --> spaces in quine_mc_cluskey.py ( #1426 )
...
* Tabs --> spaces in quine_mc_cluskey.py
* fixup! Format Python code with psf/black push
2019-11-21 22:21:40 +08:00
Christian Clauss
b838f1042c
Fix indentation contains tabs (flake8 E101,W191) ( #1573 )
2019-11-15 23:05:00 -08:00
Christian Clauss
dbaedd4ed7
|| true ( #1572 )
...
* || true
* 3.8
* python: 3.x
2019-11-14 18:22:23 -08:00
Christian Clauss
5df8aec66c
GitHub Action formats our code with psf/black ( #1569 )
...
* GitHub Action formats our code with psf/black
@poyea Your review please.
* fixup! Format Python code with psf/black push
2019-11-14 19:59:43 +01:00
Christian Clauss
fa6331aa82
Moved to TheAlgorithms/Jupyter ( #1563 )
...
https://github.com/TheAlgorithms/Jupyter/tree/master/other
2019-11-13 21:26:29 -08:00
Christian Clauss
bfac867e27
Add doctests to other/word_patterns.py ( #1518 )
2019-10-29 21:05:36 +01:00
Christian Clauss
bf50ea09ae
Add Travis_CI_tests_are_failing.md ( #1499 )
...
* Add Travis_CI_tests_are_failing.md
* Update Travis_CI_tests_are_failing.md
2019-10-28 13:38:08 +01:00
Christian Clauss
4531ea425e
Transfer .ipynb files to TheAlgorithms/Jupyter ( #1414 )
2019-10-22 08:45:03 +02:00
Christian Clauss
6ebd899c01
CONTRIBUTING.md: Fix mistake in doctest ;-) ( #1266 )
...
* CONTRIBUTING.md: Fix mistake in doctest ;-)
* Update CONTRIBUTING.md
2019-10-05 23:32:58 +08:00
Christian Clauss
df44d1b703
Update CONTRIBUTING.md ( #1250 )
...
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
* Add Python type hints and mypy
2019-10-02 21:49:00 +05:30
Christian Clauss
a79fc2b92a
Fix the build typo: fn --> fn1 ( #1205 )
2019-09-26 21:02:04 +05:30
Christian Clauss
030600f9b3
Update matrix_class.py ( #1175 )
2019-09-10 07:49:07 +02:00
Christian Clauss
47a9ea2b0b
Simplify code by dropping support for legacy Python ( #1143 )
...
* Simplify code by dropping support for legacy Python
* sort() --> sorted()
2019-08-19 15:37:49 +02:00
Christian Clauss
a18a8fe2b9
Update .gitignore to remove __pycache__/ ( #1127 )
2019-08-17 00:46:33 +02:00
Christian Clauss
3e69733e44
Remove 'python' from the filename ( #1130 )
2019-08-15 13:19:38 +02:00
Christian Clauss
27205d4548
Update DIRECTORY.md ( #1129 )
2019-08-14 23:24:58 +02:00
Christian Clauss
dc2b575274
Add doctests to networking_flow/minimum_cut.py ( #1126 )
2019-08-13 11:59:49 +02:00
Christian Clauss
c74fd0c9bf
Add maths/test_prime_check.py ( #1125 )
...
* Add maths/test_prime_check.py
* Add comments on why this file is required
2019-08-13 11:50:13 +02:00
Christian Clauss
4fea48072a
Add type hints to binary_tree_traversals.py ( #1123 )
2019-08-12 17:59:59 +02:00
Christian Clauss
55cea57ffa
Fix tests for file_transfer and perceptron.py ( #1121 )
2019-08-11 13:00:58 +02:00
Christian Clauss
36684db278
Travis CI: Add pytest --doctest-modules machine_learning ( #1016 )
...
* Travis CI: Add pytest --doctest-modules neural_network
Fixes #987
```
neural_network/perceptron.py:123: in <module>
sample.insert(i, float(input('value: ')))
../lib/python3.7/site-packages/_pytest/capture.py:693: in read
raise IOError("reading from stdin while output is captured")
E OSError: reading from stdin while output is captured
-------------------------------------------------------------------------------- Captured stdout --------------------------------------------------------------------------------
('\nEpoch:\n', 399)
------------------------
value:
```
* Adding fix from #1056 -- thanks @QuantumNovice
* if __name__ == '__main__':
* pytest --ignore=virtualenv # do not test our dependencies
2019-08-10 22:48:00 +02:00
Christian Clauss
91c3c98d2b
Rename file_transfer and linear_algebra ( #1118 )
...
* Rename file_transfer and linear_algebra
* Rename file_transfer and linear_algebra
2019-08-09 21:37:16 +02:00
Christian Clauss
561a41464f
Travis CI: Run each failing pytest in allow_failures mode ( #1087 )
...
* Travis CI: Run failing pytest in allow_failures mode
* Sync with master
* Sync with master
2019-08-06 21:53:12 +02:00
Christian Clauss
7cf3db1843
Add test for QuadraticEquation() ( #1107 )
2019-08-06 21:32:27 +02:00
Christian Clauss
7b5a18453b
print() is a function just like every other function ( #1104 )
2019-08-06 21:31:45 +02:00