TheAlgorithms / Python Public
master
Commits on Oct 17, 2021
-
[mypy] fix mypy error in Project Euler Problem 092 solution 1 (#5357)
* fix mypy error * updating DIRECTORY.md * simplify code * run black * fix doc consistency * Fix doc * fix doc Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Commits on Oct 16, 2021
-
Add Project Euler Problem 092 (#5091)
* adde solution to problem 092 * added solution to problem 092 * fixed the pre-comit shebang issue
-
Add tests to morse_code.py (#5337)
* Add tests to morse_code.py @dhruvmanila @poyea Your reviews, please. * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
Added morphological operations, fixes: #5197 (#5199)
* Added morphological operations, fixes: #5197 * Added dilation tests and type hints * Added erosion tests and type hints * fixes: #5197 * fixes: #5197 * Update erosion_operation.py * made suggested changes in dilation * made suggested changes in erosion * made suggested changes in dilation * removed extra spaces in the tests * removed extra spaces in the tests
-
Improved readability of web_programming/get_imdbtop.py and added docu…
…mentations with doctests (#4855) * improved readability of the existing method by reformatting, adding documentations with doctests. * improved readability of the existing method by reformatting, adding documentations with doctests. * fixed typo in test * added doctest to parse dictionary method * added doctest to parse dictionary method * Changed return type, removed print() from method and implemented doctests as suggested * Fixed doctest error, removed print() from method, created new script as suggested * Update get_imdbtop.py * Fix typo discovered by codespell * return () Co-authored-by: Christian Clauss <[email protected]>
-
Show images from google query (#4853)
* Added new script to open the google image tab with a search query. * Added new script to open the google image tab with a search query. * Added new script to open the google image tab with a search query with doctests. * Fixed doctest error, removed print() from method, changed return type * Update web_programming/show_image_tab_from_google_query.py using iterators instead of lists Co-authored-by: Christian Clauss <[email protected]> * Update web_programming/show_image_tab_from_google_query.py Improve readability by removing one-time used variable Co-authored-by: Christian Clauss <[email protected]> * Update web_programming/show_image_tab_from_google_query.py Decreasing complication through standard practices. Co-authored-by: Christian Clauss <[email protected]> * Update web_programming/show_image_tab_from_google_query.py Exception Handling Co-authored-by: Christian Clauss <[email protected]> * changed complete method to download images from google search query * Update download_images_from_google_query.py * Delete show_image_tab_from_google_query.py Co-authored-by: Christian Clauss <[email protected]>
Commits on Oct 15, 2021
-
Matching min vertex cover (#5326)
* matching algorithm for min vertex cover problem * fixed hint on row 37 * changed variable names * provided doctest for get_edges function * Removed dict.keys() iteration * Update matching_min_vertex_cover.py Co-authored-by: Christian Clauss <[email protected]>
-
Greedy min vertex cover hacktoberfest (#5241)
* added complete graph generator function * added doctest, type hints, wikipedia explanation * added return type hint for function complete_graph * added descriptive name for the parameter: n * random graph generator with doctest and type hints * added Greedy min vertex algorithm * pre-commit hook(s) made changes * Delete complete_graph_generator.py * Delete random_graph_generator.py * fixed doctest * updated commit following highligths * fixed following pre-commit highlights * modified variables names
-
Commits on Oct 14, 2021
-
It is OK to test ./scripts (#5290)
* It is OK to test ./scripts * updating DIRECTORY.md * Update build.yml Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> -
Add Proth number to maths (#5246)
* Add Proth number to maths * Add test for 0 and more informative output * Fixing test failure issue - unused variable * Update proth_number.py Co-authored-by: Christian Clauss <[email protected]>
-
Create baconian_cipher.py (#5251)
* Create baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py * Update baconian_cipher.py
-
Add surface area of cone and cylinder and hemisphere (#5220)
* Update area.py * Update area.py * Update area.py * Update area.py * Update area.py * Update area.py * Update area.py * Update area.py
-
Modified Euler's Method (#5258)
* Magnitude and Angle Core function to find Magnitude and Angle of two Given Vector * Magnitude and Angle with Doctest added Doctest to the functions * Update linear_algebra/src/lib.py Co-authored-by: Christian Clauss <[email protected]> * Update linear_algebra/src/lib.py Co-authored-by: Christian Clauss <[email protected]> * Changes done and Magnitude and Angle Issues * black * Modified Euler's Method Adding Modified Euler's method, which was the further change to a Euler method and known for better accuracy to the given value * Modified Euler's Method (changed the typing of function) Modified function is used for better accuracy * Link added Added link to an explanation as per Contributions Guidelines * Resolving Pre-Commit error * Pre-Commit Error Resolved * Pre-Commit Error import statement Change * Removed Import Math * import math built issue * adding space pre-commit error * statement sorter for doc Co-authored-by: Christian Clauss <[email protected]>
-
Added Optimal Merge Pattern Algorithm (#5274)
* Minor changes due to precommit * Update optimal_merge_pattern.py Co-authored-by: Christian Clauss <[email protected]>
Commits on Oct 12, 2021
-
Magnitude and Angle of Vector (#5225)
* Magnitude and Angle Core function to find Magnitude and Angle of two Given Vector * Magnitude and Angle with Doctest added Doctest to the functions * Update linear_algebra/src/lib.py Co-authored-by: Christian Clauss <[email protected]> * Update linear_algebra/src/lib.py Co-authored-by: Christian Clauss <[email protected]> * Changes done and Magnitude and Angle Issues * black Co-authored-by: Christian Clauss <[email protected]>
Commits on Oct 11, 2021
-
Change comments for improved consistency (#5223)
* Change comments for improved consistency https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md#L56 https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md#L80 https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md#L87 * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
-
[mypy] fix type annotations for all Project Euler problems (#4747)
* [mypy] fix type annotations for problem003/sol1 and problem003/sol3 * [mypy] fix type annotations for project euler problem007/sol2 * [mypy] fix type annotations for project euler problem008/sol2 * [mypy] fix type annotations for project euler problem009/sol1 * [mypy] fix type annotations for project euler problem014/sol1 * [mypy] fix type annotations for project euler problem 025/sol2 * [mypy] fix type annotations for project euler problem026/sol1.py * [mypy] fix type annotations for project euler problem037/sol1 * [mypy] fix type annotations for project euler problem044/sol1 * [mypy] fix type annotations for project euler problem046/sol1 * [mypy] fix type annotations for project euler problem051/sol1 * [mypy] fix type annotations for project euler problem074/sol2 * [mypy] fix type annotations for project euler problem080/sol1 * [mypy] fix type annotations for project euler problem099/sol1 * [mypy] fix type annotations for project euler problem101/sol1 * [mypy] fix type annotations for project euler problem188/sol1 * [mypy] fix type annotations for project euler problem191/sol1 * [mypy] fix type annotations for project euler problem207/sol1 * [mypy] fix type annotations for project euler problem551/sol1
-
Remove unnecessary branch (#4824)
* Algorithm Optimized * Update divide_and_conquer/inversions.py Co-authored-by: John Law <[email protected]> * Update divide_and_conquer/inversions.py Co-authored-by: John Law <[email protected]> * Update divide_and_conquer/inversions.py Co-authored-by: John Law <[email protected]> Co-authored-by: John Law <[email protected]>
-
Add carrier concentrations calculation algorithm (#4791)
* added carrier concentrations algorithm * Add more references Added more references to the carrier concentrations file * Update electronics/carrier_concentration.py Co-authored-by: John Law <[email protected]> * Update electronics/carrier_concentration.py Co-authored-by: John Law <[email protected]> Co-authored-by: John Law <[email protected]>
Commits on Oct 10, 2021
-
Add Sylvester's sequence to maths (#5171)
* Add Sylvester's sequence to maths * Update sylvester_sequence.py Co-authored-by: Christian Clauss <[email protected]>
-
-
* Used in-built method * Delete swap_case.py Co-authored-by: Christian Clauss <[email protected]>
Commits on Oct 7, 2021
-
bugfix: Add empty list detection for find_max/min (#4881)
* bugfix: Add empty list detection for find_max/min * fix shebangs check
Commits on Oct 6, 2021
-
-
-
bugfix: Add abs_max.py & abs_min.py empty list detection (#4844)
* bugfix: Add abs_max.py & abs_min.py empty list detection * fix shebangs check
Commits on Oct 4, 2021
-
Fix word typos in comments (#4928)
* fixed: spelling nonegative -> non-negative * fixed: spelling transpostiion -> transposition * fixed: spelling topolical -> topological * fixed: spelling sufix -> suffix
-

