quick_sort_yq

Crates.ioquick_sort_yq
lib.rsquick_sort_yq
version0.1.5
created_at2025-10-28 04:07:26.171684+00
updated_at2025-10-28 07:32:22.806078+00
descriptionA sample quick sort algorithm
homepage
repository
max_upload_size
id1904114
size2,258
Yongqiang Qu (netqyq)

documentation

README

Quick Sort Algorithm

A simple, generic implementation of the quick sort algorithm in Rust.

Usage

1. Add as a Dependency

Add the following to your Cargo.toml:

[dependencies]
quick_sort_yq = "0.1.5"

Replace the version with the latest published version if needed.

2. Import and Use

use quick_sort_yq::quick_sort;

fn main() {
    let mut arr = [3, 6, 8, 10, 1, 2, 1, 80];
    println!("Before: {:?}", arr);
    quick_sort(&mut arr);
    println!("After:  {:?}", arr);
}

Features

  • Generic: Works with any type that implements Ord.
  • No dependencies.

License

MIT

Commit count: 0

cargo fmt