Python/data_structures
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
..
binary_tree Pyupgrade to python3.8 (#3616) 2020-10-21 12:46:14 +02:00
disjoint_set Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
hashing Fix imports for all namespace packages (#2506) 2020-09-28 23:41:04 +02:00
heap [mypy] Add type hints and docstrings to heap.py (#3013) 2020-12-26 08:42:37 +05:30
linked_list Create merge_two_lists.py that implements merging of two sorted linked lists (#3874) 2020-12-03 16:02:48 +01:00
queue Update LinkedQueue (#3683) 2020-10-24 12:16:37 +02:00
stacks Update infix to postfix (#3817) 2020-11-02 00:35:31 +08:00
trie Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00