algo/src/main.rs

10 lines
250 B
Rust
Raw Normal View History

2017-08-27 11:27:35 +00:00
mod algorithms;
use algorithms::bubblesort::Bubblesort;
use algorithms::Algorithm;
2017-08-27 10:44:36 +00:00
fn main() {
2017-08-27 11:27:35 +00:00
let unsorted : Vec<i32> = vec![2498,29687,24,5,94545,8,51,152,48,871,5];
let sorted = Bubblesort::sort(unsorted);
println!("{:?}", sorted);
}