3 releases (stable)

1.1.0 Dec 31, 2019
1.0.0 Dec 31, 2019
0.1.0 Dec 31, 2019

#32 in #selection

MIT license

4KB

selection_sort Build Status crates.io

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