Mark Huang 207ac957ef
[mypy] Add type hints and docstrings to heap.py ()
* 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
2020-11-29 23:16:26 +05:30
2020-11-29 23:07:10 +01:00
2020-11-24 12:41:10 +01:00
2020-11-28 22:42:30 +08:00
2020-11-08 18:26:22 +01:00
2020-12-18 10:39:51 +01:00
2019-11-17 19:37:58 +01:00
2020-04-13 02:17:29 +02:00
2020-11-24 12:41:10 +01:00

The Algorithms - Python

Gitpod Ready-to-Code  Gitter chat  GitHub Workflow Status  LGTM  contributions welcome  Donate    pre-commit  code style: black 

All algorithms implemented in Python (for education)

These implementations are for learning purposes only. Therefore they may be less efficient than the implementations in the Python standard library.

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

List of Algorithms

See our directory.

Languages
Python 99.9%
Shell 0.1%