- 11 11月, 2021 2 次提交
-
-
由 Andrew Grangaard 提交于
* Adds repr and doctest of current behavior linkedlist in other/lru_cache * Blocks removal of head or tail of double linked list * clarifies add() logic for double linked list in other/lru_cache * expands doctests to compare cache and lru cache * [mypy] annotates vars for other/lru_cache * [mypy] Annotates lru_cache decorator for other/lru_cache * Higher order functions require a verbose Callable annotation * [mypy] Makes LRU_Cache generic over key and value types for other/lru_cache + no reason to force int -> int * [mypy] makes decorator a classmethod for access to class generic types * breaks two long lines in doctest for other/lru_cache * simplifies boundary test remove() for other/lru_cache * [mypy] Annotates, adds doctests, and makes Generic other/lfu_cache See also commits to other/lru_cache which guided these * [mypy] annotates cls var in other/lfu_cache * cleans up items from code review for lfu_cache and lru_cache * [mypy] runs mypy on lfu_cache and lru_cache
-
由 Joyce 提交于
-
- 10 11月, 2021 2 次提交
-
-
由 Rohan R Bharadwaj 提交于
* Update matrix_operation.py * Update mypy.ini * Update DIRECTORY.md * formatting * Update matrix_operation.py * doctest for exception * A bit more...
-
由 Carl-Henrik Åkeson 提交于
* Added solution for Project Euler problem 145 * Updated spelling of comments Updated spelling inline with codespell * Removed trailing whitespaces in comments * Added default values. * nr -> number Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * nr -> number * Update sol1.py * Update sol1.py Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
- 09 11月, 2021 6 次提交
-
-
由 Rohan R Bharadwaj 提交于
* Update ternary_search.py * Update mypy.ini * Update simulated_annealing.py * Update ternary_search.py * formatting * formatting * Update matrix_operation.py * Update matrix_operation.py * Update matrix_operation.py
-
由 Nivas Manduva 提交于
* 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: NChristian Clauss <cclauss@me.com> * updating DIRECTORY.md * Update arithmetic_analysis/jacobi_iteration_method.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update arithmetic_analysis/jacobi_iteration_method.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update arithmetic_analysis/jacobi_iteration_method.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update arithmetic_analysis/jacobi_iteration_method.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update arithmetic_analysis/jacobi_iteration_method.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update arithmetic_analysis/jacobi_iteration_method.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update jacobi_iteration_method.py * Update jacobi_iteration_method.py * Update jacobi_iteration_method.py * fix styles Co-authored-by: NChristian Clauss <cclauss@me.com> Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Maxim Smolskiy 提交于
* updating DIRECTORY.md * Add solution * updating DIRECTORY.md * Fix * Fix Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Rohan R Bharadwaj 提交于
* Type annotations for `breadth_first_search.py` * Type annotations for `breadth_first_search_2.py` * Remove from excluded in mypy.ini * Add doctest.testmod() * Type annotations for `graphs/check_cycle.py` * Type annotations for `graphs/greedy_min_vertex_cover.py` * Remove from excluded in mypy.ini
-
由 Leoriem-code 提交于
* rewrote anagrams.py, added doctests * corrected mistakes * add anagrams.txt * Update anagrams.py * Update strings/anagrams.py Co-authored-by: NChristian Clauss <cclauss@me.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Rohan R Bharadwaj 提交于
[mypy] Type annotations for `graphs/finding_bridges.py` and `graphs/random_graph_generator.py` (#5795) * [mypy] Annotate `graphs/finding_bridges.py` * Remove from excluded in `mypy.ini` * Add doctest.testmod() * psf/black formatting * Annotations for `graphs/random_graph_generator.py` * Remove from excluded in `mypy.ini` * Resolve merge conflict * Resolve merge conflict * Update mypy.ini * Update mypy.ini * Remove from excluded
-
- 08 11月, 2021 2 次提交
-
-
由 Dylan Buchi 提交于
* Fix type annotations in boruvka.py * Remove graphs/boruvka.py| * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Khoi Vo 提交于
* ADD the algorithms of image augmentation * ADD the algorithms of image augmentation * ADD the algorithms of image augmentation * ADD the algorithms of image augmentation * ADD the algorithms of image augmentation * ADD the algorithms of image augmentation * UPDATE format code * UPDATE format and recode structure * UPDATE format import library * UPDATE code structure * Fix all checks have failded * FIX variable format * FIX variable format * FIX variable format * FIX code structure * FIX code structure * FIX code structure * FIX code structure
-
- 07 11月, 2021 3 次提交
-
-
由 Rohan R Bharadwaj 提交于
* [mypy] Fix annotations in `maths/series/p_series.py` * Update p_series.py * Update p_series.py * Remove from excluded in mypy.ini * Type annotation for series * Annotate maths/proth_number.py (properly) * Remove from excluded in mypy.ini * Annotate average_mode.py * Update average_mode.py * Update average_mode.py * Update average_mode.py * Update average_mode.py * Remove from excluded in mypy.ini * Fix annotations in gamma_recursive.py * Remove from excluded in mypy.ini * Annotations for geometric_series.py * Update geometric_series.py * Update mypy.ini * Update average_mode.py * Update average_mode.py * Update average_mode.py * Update mypy.ini * Update mypy.ini * Update mypy.ini * Update average_mode.py * Update proth_number.py * Update average_mode.py * Update gamma_recursive.py * Update proth_number.py * Update mypy.ini * Update geometric_series.py * Update average_mode.py * Update proth_number.py * Update geometric_series.py * Update geometric_series.py * Update geometric_series.py * Update p_series.py * Update geometric_series.py * Update p_series.py * Update p_series.py * Update geometric_series.py * Update p_series.py * Update p_series.py * Remove data_structures/stacks/next_greater_element.py| Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Rohan R Bharadwaj 提交于
* Add equated_monthly_installments.py in Financials * Formatting * More formatting, Descriptive names * Errors with name change * Formatting * Formatting, Naming Error * dedent * Update DIRECTORY.md
-
由 Rohan R Bharadwaj 提交于
* [mypy] Fix `other/fischer_yates_shuffle.py` * Update mypy.ini
-
- 06 11月, 2021 4 次提交
-
-
由 Christian Clauss 提交于
* DRAFT: Run a mypy reality check Let's see what is required to finish #4052 * mypy --ignore-missing-imports --install-types --non-interactive * Check our progress... * Update build.yml * Update build.yml * Update build.yml * Update build.yml * mypy --exclude 20 files * --exclude with no `=` * Update build.yml * 558 character regex!!! * With quotes * mypy.ini: mega exclude * Update mypy.ini * Update build.yml * Update mypy.ini * Update build.yml * Update mypy.ini * .py --> .p* * Escape the dots!: `.` --> `\.` * Remove the comment * Leading slash * Update mypy.ini Co-authored-by: NDylan Buchi <devybuchi@gmail.com> Co-authored-by: NDylan Buchi <devybuchi@gmail.com>
-
由 Dylan Buchi 提交于
* Fix type annotations in next_greater_element.py * Refactor next_greater_element.py
-
由 Maxim Smolskiy 提交于
* updating DIRECTORY.md * Fix typo * Improve solution Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Rohan R Bharadwaj 提交于
* Improve Project Euler Problem 10 Sol-1 * Name correction * psf/black formatting * More formatting
-
- 05 11月, 2021 4 次提交
-
-
由 Leoriem-code 提交于
-
由 Boris Galochkin 提交于
* Fix finding_bridges algorithms + tests * update type hints * Better, more obvious condition fix * fix prev commit + more tests * Short explanation + url * Update finding_bridges.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Snimerjot Singh 提交于
-
由 Maxim Smolskiy 提交于
* Improve solution * Uncomment code that has been commented due to slow execution affecting Travis * Fix * scikit-fuzzy is causing broken builds * fuzz = None * Update fuzzy_operations.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
- 04 11月, 2021 10 次提交
-
-
由 Dylan Buchi 提交于
* [mypy] Fix type annotations in red_black_tree.py * Remove blank lines * Update red_black_tree.py
-
由 Maxim Smolskiy 提交于
* Improve solution * Uncomment code that has been commented due to slow execution affecting Travis * Fix
-
由 Jaydeep Das 提交于
* Rewritten reddit.py * Removed logging module import * Fixed minor bug which was causing extreme rate limiting * Update reddit.py * Update reddit.py * Update reddit.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Sailesh Shrestha 提交于
* Add all_construct dynamic programming implementation * all_construct: remove the main function * all_construct: Add type hints * all_construct: changed map to list comprehension,fix mutable default arguments * all_construct: fixed type hints * all_construct: cleaner code for initializing word_bank argument * all_construct: added an import for annotations * all_construct: added None in the argument with word_bank * all_construct: fixed a type hint * all_construct: Fixed some more type hints
-
由 Leoriem-code 提交于
* Added 5 README files * corrected arithmetic_analysis README * Update audio_filters/README.md Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Update backtracking/README.md Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Update bit_manipulation/README.md Co-authored-by: NJohn Law <johnlaw.po@gmail.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Divyesh Vishwakarma 提交于
-
由 Dylan Buchi 提交于
* Fix type annotations in lowest_common_ancestor.py * Refactor line 53 in lowest_common_ancestor.py
-
由 Andrew Grangaard 提交于
+ As per usage examples, clause literals are a list of strings. + Note: symbols extracted from literals are expected to be exactly two characters. + self.literal boolean values are initialized to None, so must be optional + model values should be Booleans, but aren't guaranteed to be non-None in the code. + uses newer '... | None' annotation for Optional values + clauses are passed to the Formula initializer as both lists and sets, they are stored as lists. Returned clauses will always be lists. + use explicit tuple annotation from __future__ rather than using (..., ...) in return signatures + mapping returned by dpll_algorithm is optional per the documentation.
-
由 Maxim Smolskiy 提交于
* Improve solution * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Souvik Ghosh 提交于
* 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 3be15ca374f3ea3f01f725912dba59b939b058b5. * 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: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
- 03 11月, 2021 3 次提交
-
-
由 Vɪɴᴀʏᴀᴋ Pᴀɴᴅᴇʏ 提交于
Yesterday hexagonal_numbers.py was created. Added that file in this list(maths/series/hexagonal_numbers.py)
-
由 Maxim Smolskiy 提交于
-
由 Leoriem-code 提交于
-
- 02 11月, 2021 4 次提交
-
-
由 Maxim Smolskiy 提交于
-
由 krishchopra02 提交于
* Added a gray_code_sequence.py file to the bit_manipulation folder * Added a descriptive name for variable n changing it to bit count * Update gray_code_sequence.py Co-authored-by: Nkrishchopra02 <krishchopra02@gmail.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Rohan R Bharadwaj 提交于
* Update base16.py * Rename base64_encoding.py to base64.py * Split into functions, Add doctests * Update base16.py
-
由 Dylan Buchi 提交于
* [mypy] fix type annotations in circular_queue_linked_list * Remove 10 blank lines Co-authored-by: NChristian Clauss <cclauss@me.com>
-