|
| 1 | +<div align="center"> |
| 2 | + <a href="https://pypi.org/project/allalgorithms"><img src="https://cdn.abranhe.com/projects/algorithms/logo.svg" width="30%"></a> |
| 3 | + <br> |
| 4 | + <br> |
| 5 | + <br> |
| 6 | + <br> |
| 7 | + The All ▲lgorithms Python library |
| 8 | + <br> |
| 9 | + <br> |
| 10 | +</p> |
| 11 | + |
| 12 | +[![All Algorithms Badge][1]][2] |
| 13 | +[![Travis][travis-img]][travis-link] |
| 14 | +[![License][license-img]][license-link] |
| 15 | +[![pypi][pypi]][pypi-link] |
| 16 | + |
| 17 | + <br> |
| 18 | + <br> |
| 19 | + <br> |
| 20 | + <br> |
| 21 | + |
| 22 | + [`python.allalgorithms.com`](https://python.allalgorithms.com) |
| 23 | + |
| 24 | +</div> |
| 25 | + |
| 26 | +# Why? |
| 27 | + |
| 28 | +- Why not 😂 |
| 29 | +- Clean and focused |
| 30 | +- Actively maintained |
| 31 | +- Because All Algorithms should easy to use in Python |
| 32 | + |
| 33 | +## Install |
| 34 | + |
| 35 | +``` |
| 36 | +pip install allalgorithms |
| 37 | +``` |
| 38 | + |
| 39 | +## Usage Example |
| 40 | + |
| 41 | +```py |
| 42 | +from allalgorithms.searches import binary_search |
| 43 | + |
| 44 | +arr = [-2, 1, 2, 7, 10, 77] |
| 45 | + |
| 46 | +print(binary_search(arr, 7)) |
| 47 | +# -> 3 |
| 48 | + |
| 49 | +print(binary_search(arr, 3)) |
| 50 | +# -> None |
| 51 | +``` |
| 52 | + |
| 53 | +# Tree |
| 54 | + |
| 55 | +- Searches |
| 56 | + - [Binary Search](binary_search) |
| 57 | +- Sorting |
| 58 | + - [Merge Sort](merge_sort) |
| 59 | + |
| 60 | + |
| 61 | +# Related |
| 62 | + |
| 63 | +- [javascript-lib](https://github.com/abranhe/javascript-lib): All ▲lgorithms Javascript library |
| 64 | + |
| 65 | +# Maintainers |
| 66 | + |
| 67 | +|[![Carlos Abraham Logo][3]][4]| |
| 68 | +| :--------------------------: | |
| 69 | +| [Carlos Abraham][4] | |
| 70 | + |
| 71 | + |
| 72 | +# License |
| 73 | + |
| 74 | +[MIT][5] License © [Carlos Abraham][4] |
| 75 | + |
| 76 | +<!-------------------Markdown Images Links ----------------------------------> |
| 77 | +[1]: https://cdn.abranhe.com/projects/algorithms/badge.svg |
| 78 | +[2]: https://github.com/abranhe/python-lib |
| 79 | +[3]: https://avatars3.githubusercontent.com/u/21347264?s=50 |
| 80 | +[4]: https://github.com/abranhe |
| 81 | +[5]: https://github.com/abranhe/python-lib/blob/master/LICENSE |
| 82 | +[travis-link]: https://travis-ci.org/abranhe/python-lib |
| 83 | +[travis-img]: https://img.shields.io/travis/abranhe/python-lib.svg?logo=travis |
| 84 | +[license-link]: https://github.com/abranhe/python-lib/blob/master/LICENSE |
| 85 | +[license-img]: https://img.shields.io/github/license/abranhe/python-lib.svg |
| 86 | +[pypi]: https://img.shields.io/pypi/v/allalgorithms.svg |
| 87 | +[pypi-link]: https://pypi.org/project/allalgorithms |
| 88 | +<!-------------------Markdown Images Links ----------------------------------> |
| 89 | + |
| 90 | +<div align="center"> |
| 91 | + <a href="https://github.com/abranhe/algorithms"> |
| 92 | + <img src="https://cdn.abranhe.com/projects/algorithms/logo.svg" width="50px"> |
| 93 | + </a> |
| 94 | + <br> |
| 95 | +</div> |
0 commit comments