Python/data_structures/heap
Mark Huang 207ac957ef
[mypy] Add type hints and docstrings to heap.py (#3013)
* Add type hints and docstrings to heap.py

- Add type hints
- Add docstrings
- Add explanatory comments 
- Improve code readability
- Change to use f-string

* Fix import sorting

* fixup! Format Python code with psf/black push

* Fix static type error

* Fix failing test

* Fix type hints

* Add return annotation

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2020-12-26 08:42:37 +05:30
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
binomial_heap.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
heap_generic.py removed redundant data_structures folder (#2256) 2020-07-31 20:36:02 +02:00
heap.py [mypy] Add type hints and docstrings to heap.py (#3013) 2020-12-26 08:42:37 +05:30
max_heap.py Add type hints to max_heap.py (#1960) 2020-05-11 12:23:39 +02:00
min_heap.py Update min_heap.py (#2245) 2020-07-28 07:55:35 +02:00
randomized_heap.py Add randomized heap. (#3241) 2020-10-14 12:17:02 +02:00
skew_heap.py Add skew heap data structure. (#3238) 2020-10-14 12:35:53 +02:00