3 releases (stable)
1.1.0 | Dec 31, 2019 |
---|---|
1.0.0 | Dec 31, 2019 |
0.1.0 | Dec 31, 2019 |
#35 in #selection
4KB
selection_sort
Selection Sort implemented in Rust
use selection_sort::selection_sort;
fn main () {
let mut vec = vec![1, 3, 2];
selection_sort(&mut vec);
println!("{:?}", vec);
assert!(vec == [1, 2, 3]);
}
// [1,2,3]
Dependencies
~0.7–0.9MB
~13K SLoC