Algorithms is a library of algorithms and data structures implemented in Python.
The main purpose of this library is to be an educational tool. You probably shouldn't use these in production, instead, opting for the optimized versions of these algorithms that can be found else where.
You should totally check out the docs for implementation details, complexities and further info.
If you want to use the algorithms in your code it is as simple as:
from algorithms.sorting import bubble_sort my_list = bubble_sort.sort(my_list)
Installation is as easy as:
$ pip install algorithms
Pytest is used as the main test runner and all Unit Tests can be run with:
$ ./run_tests.py
Contributions are always welcome. Check out the contributing guidelines to get started.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。