#sorting #algorithm #methods #implemented #world #array

algo_sorting

This is a crate to implement all kind of sorting in the world of algorithms and more sorting methods will be implemented soon

2 releases

0.0.2 Mar 25, 2022
0.0.1 Mar 25, 2022

#1687 in Algorithms

MIT license

3KB

A Rust library crate to sort any array using multiple algorithm methods available in DSA

Usage: [dependencies] algo_sorting = "0.0.1"

use algo_sorting;
let mut arr = vec![3, 1, 2, 4, 6, 5];

let sorted = algo_sorting::bubble(&mut arr);

assert!(sorted, vec![1, 2, 3, 4, 5, 6]);

No runtime deps