mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
f36ee034f1
* 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 |
||
---|---|---|
.github | ||
arithmetic_analysis | ||
audio_filters | ||
backtracking | ||
bit_manipulation | ||
blockchain | ||
boolean_algebra | ||
cellular_automata | ||
ciphers | ||
compression | ||
computer_vision | ||
conversions | ||
data_structures | ||
digital_image_processing | ||
divide_and_conquer | ||
dynamic_programming | ||
electronics | ||
file_transfer | ||
financial | ||
fractals | ||
fuzzy_logic | ||
genetic_algorithm | ||
geodesy | ||
graphics | ||
graphs | ||
greedy_methods | ||
hashes | ||
knapsack | ||
linear_algebra | ||
machine_learning | ||
maths | ||
matrix | ||
networking_flow | ||
neural_network | ||
other | ||
physics | ||
project_euler | ||
quantum | ||
scheduling | ||
scripts | ||
searches | ||
sorts | ||
strings | ||
web_programming | ||
.coveragerc | ||
.gitattributes | ||
.gitignore | ||
.gitpod.yml | ||
.pre-commit-config.yaml | ||
CONTRIBUTING.md | ||
DIRECTORY.md | ||
LICENSE.md | ||
mypy.ini | ||
pytest.ini | ||
README.md | ||
requirements.txt |
Implementations are for learning purposes only. As they may be less efficient than the implementations in the Python standard library, use them at your discretion.
Getting Started
Read through our Contribution Guidelines before you contribute.
Community Channels
We're on Discord and Gitter! Community channels are great for you to ask questions and get help. Please join us!
List of Algorithms
See our directory for easier navigation and better overview of the project.