Function sort_it::algorithms::gnome_sort::gnome_sort_stepped
source · [−]pub fn gnome_sort_stepped<T>(arr: Vec<T>) -> (Vec<T>, Vec<Vec<T>>) where
T: PartialEq + PartialOrd + Clone + Copy,
Expand description
The gnome sort algorithm but stepped.
Sorts a given Vec
and returns the result and a Vec
containing each step of the process.