I found this neat little python modul called algorithms and thought I would rewrite it in Rust.
The official github repository can be found here at algorithms.
If you want to install it directly from here use the following commands.
git clone https://github.com/r3ap3rpy/algorithms.git
cd algorithms
cargo test
cargo install --path .If you want to use it in your project use the following commands. It is published on crates.io
cargo new <myproject>
cd myproject
cargo add algorithmzThe following algorithms are implemented:
- bubble sort
- bead sort
- heap sort
- counting sort
- cycle sort
- shell sort
- quick sort
- bitonic sort
- bogo sort
- bucket sort
The following algorithms are implemented:
- flatten
Warning
This is still in progress.