Repositories (1)

algorithm
1 snippets stored for this repo
Rust IconRust
/// 鸡尾酒排序 (Cock-tail sort)
/// 每次扫描可以同时查找最小值和最大值,将最小值放到开头,