https://github.com/dmjio/selection_sort
Selection sort implemented in Rust
https://github.com/dmjio/selection_sort
rust selection-sort
Last synced: 11 months ago
JSON representation
Selection sort implemented in Rust
- Host: GitHub
- URL: https://github.com/dmjio/selection_sort
- Owner: dmjio
- License: mit
- Created: 2019-12-31T00:57:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T15:53:47.000Z (about 6 years ago)
- Last Synced: 2024-04-29T23:25:48.374Z (almost 2 years ago)
- Topics: rust, selection-sort
- Language: Rust
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
selection_sort [](https://travis-ci.org/dmjio/selection_sort) [](https://crates.io/crates/selection_sort)
=============================
[Selection Sort](https://en.wikipedia.org/wiki/Selection_sort) implemented in [Rust](https://www.rust-lang.org/)
```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]
```