- 22 10月, 2021 7 次提交
-
-
由 poloso 提交于
* [mypy] fix type annotations for graphs/a_star.py #4052 * updating DIRECTORY.md * Add from __future__ import anotations * rename delta by DIRECTIONS Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Rename delta by DIRECTIONS in all code * Enclose script in __main__ code block * Refactor DIRECTIONS with comments for readibility * Delete heuristic example comment * Do not print, return all values * Fix multilines * fix black * Update a_star.py Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Erwin Junge 提交于
-
由 Erwin Junge 提交于
* Add missing type annotation * Fix conversion bug This failed when called with the documented example of `1.5` and was correctly pointed out by `mypy --strict`
-
由 Erwin Junge 提交于
-
由 Jenny Vo 提交于
-
由 Sherman Hui 提交于
-
由 Sherman Hui 提交于
The list comprehension shortcut was implicitly expecting a return value causing a mypy error since `insert_tail` doesn't return a value
-
- 21 10月, 2021 3 次提交
-
-
由 poloso 提交于
* Update annotations to Python 3.10 #4052 * Add floats doctest * Copy list to avoid changing input unpredictably * Refactor code to make it readable * updating DIRECTORY.md * Improve raised ValueErrors and add doctest * Split doctest in multiples lines * Change ValueError to Monogons and Digons are not poly * Correct doctest refering number of sides Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 John Law 提交于
* updating DIRECTORY.md * pass integer to `math.factorial` in `project_euler/problem_015` * remove duplicated factorial function * updating DIRECTORY.md * Update maths/factorial_iterative.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update factorial_iterative.py Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Benjamín García Roqués 提交于
* Add deque_from_scratch.py * added deque_from_scratch.py * add extend, extendleft and make comparison * updated operations list * fix doctest on Deque.__iter__ * pre-commit fix * time complexity comments, change type hints * pre-commit fix * added more doctests
-
- 20 10月, 2021 7 次提交
-
-
由 Hithru De Alwis 提交于
Change how many "=" sign to how many "=" signs
-
由 Manan Rathi 提交于
* Fix several typos * Update bit_manipulation/README.md Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Update double_sort.py Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 P U N I T H 提交于
* Added regular expression implimentation using dp * replaced input() with example values * Apply suggestions from code review Co-authored-by: NChristian Clauss <cclauss@me.com> * changed returning value to bool and added test cases * added doctest Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * added test cases * Apply suggestions from code review Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * shifted to strings * Changed filename * Update function name to match_pattern Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Update function name to match_pattern Co-authored-by: NJohn Law <johnlaw.po@gmail.com> Co-authored-by: NChristian Clauss <cclauss@me.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Immiel 提交于
This is a followup to https://github.com/TheAlgorithms/Python/pull/4973#issuecomment-933117382 As per given suggestion, I've added type hints to certain methods that don't have them. I have also added documentation and example doctests as a usage example for (most of) those that don't have them. I have also added another test case following the previous test case's format. I noticed that the existing test case from previous pull request might be redundant with the ones I've made, so I decided to create a specific situation where the linked list would have to keep different kinds of data types for each node, in `test_singly_linked_list_2` test function. Some minor changes in strings has been done to keep things consistent with other parts of the document. If it is undesirable, please let me know.
-
由 Snimerjot Singh 提交于
* Added check_strong_password.py * Corrected Comment * Updated * Updated check_strong_password.py * Ran Pre-Commit
-
由 Alvin Philips 提交于
Changed it's (it is) to its
-
由 Rohan R Bharadwaj 提交于
-
- 19 10月, 2021 6 次提交
-
-
由 Christian Clauss 提交于
* length_conversion.py: Deal with uppercase and abbreviations * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Vinicius Cordeiro 提交于
* Add polybius cipher * Fix polybius.py build issues and add test
-
由 Christian Clauss 提交于
* Remove exception detail from doctest These details are configuration dependant so should be removed according to https://docs.python.org/3/library/doctest.html * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Sabari Ganesh 提交于
* Added length unit conversions Conversion of length units were added with respective tests being implemented and passed. Available Units:- Metre,Kilometre,Feet,Inch,Centimeter,Yard,Foot,Mile,Millimeter * Formatted File File was formatted to go as per repo rules * Reformatted file * Reformatted code once again * Added more test Added test to evaluate whether the code handles wrong arguements passed * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Update length_conversions.py * Fixed Minor errors in test One of the test was failing and it was fixed Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 iradonov 提交于
* added schur complement and tests to linear algebra * updated according to checklist * updated variable names and typing * added two testcases for input validation * fixed import order Co-authored-by: NIvan Radonov <ivan.radonov@ad.mentormate.bg>
-
- 18 10月, 2021 4 次提交
-
-
由 Rohan R Bharadwaj 提交于
* Create join.py Because we have a split.py * Update join.py * Update join.py * Update join.py * Update join.py * Update join.py * Update strings/join.py Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Update join.py * Update join.py * Update join.py * Update join.py Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Jaydeep Das 提交于
* Added giphy.py to fetch gifs on a given topic * Modified code [*]Added doctest [*]Formatted with black * Minor change * Minor refactoring to avoid name clash * Made necessary changes as per review * Update web_programming/giphy.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Apply suggestions from code review * Final cleanup * Placate psf/black Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Atharva Deshpande 提交于
* added harmonic mean * Update maths/series/harmonic_mean.py Updated the write-up of reference given in the code. Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * changes in arithmetic and geometric mean code * mean and series added in a single file Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Meysam 提交于
* fix: type annotations for pypi
🏷 ️ Fixes #4052 * updating DIRECTORY.md * apply suggestions from code review Co-authored-by: NChristian Clauss <cclauss@me.com> Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
- 17 10月, 2021 3 次提交
-
-
由 John Law 提交于
* fix mypy error * updating DIRECTORY.md * simplify code * run black * fix doc consistency * Fix doc * fix doc Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Srishtik Bhandarkar 提交于
* adde solution to problem 092 * added solution to problem 092 * fixed the pre-comit shebang issue
-
由 Christian Clauss 提交于
* Add tests to morse_code.py @dhruvmanila @poyea Your reviews, please. * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
- 16 10月, 2021 4 次提交
-
-
由 Saurabh Suresh Powar 提交于
* Added morphological operations, fixes: #5197 * Added dilation tests and type hints * Added erosion tests and type hints * fixes: TheAlgorithms#5197 * fixes: TheAlgorithms#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
-
由 Appledora 提交于
Improved readability of web_programming/get_imdbtop.py and added documentations 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: NChristian Clauss <cclauss@me.com>
-
由 Appledora 提交于
* 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: NChristian Clauss <cclauss@me.com> * Update web_programming/show_image_tab_from_google_query.py Improve readability by removing one-time used variable Co-authored-by: NChristian Clauss <cclauss@me.com> * Update web_programming/show_image_tab_from_google_query.py Decreasing complication through standard practices. Co-authored-by: NChristian Clauss <cclauss@me.com> * Update web_programming/show_image_tab_from_google_query.py Exception Handling Co-authored-by: NChristian Clauss <cclauss@me.com> * 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: NChristian Clauss <cclauss@me.com>
-
由 Murilo Gonçalves 提交于
-
- 15 10月, 2021 4 次提交
-
-
由 Manuel Di Lullo 提交于
* 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: NChristian Clauss <cclauss@me.com>
-
由 Manuel Di Lullo 提交于
* 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
-
由 Rohan R Bharadwaj 提交于
-
由 Christian Clauss 提交于
* It is OK to test ./scripts * updating DIRECTORY.md * Update build.yml Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
- 14 10月, 2021 2 次提交
-
-
由 Jordan Rinder 提交于
* 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: NChristian Clauss <cclauss@me.com>
-
由 Rohan R Bharadwaj 提交于
* 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
-