1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Corporate-grade, generic, and highly optimized list algorithms for Rust.
//!
//! # Overview
//! This module provides a suite of high-performance, production-ready algorithms for searching and sorting lists, as well as common list operations. All algorithms are generic over type `T` and leverage Rust's trait system for maximum flexibility and safety.
//!
//! ## Algorithms Included
//! - Linear Search
//! - Binary Search
//! - Bubble Sort
//! - Selection Sort
//! - Insertion Sort
//! - Merge Sort
//! - Quick Sort
//! - Counting Sort
//! - Reverse List
//! - Find Max/Min
//! - Find Duplicates
//! - Kadane's Algorithm (Maximum Subarray Sum)
//! - Sliding Window
//! - Two Pointers
//! - Remove Duplicates
//! - Rotate Array
//! - Prefix Sum
//!
//! # Usage
//! ```rust
//! use pofk_algorithm::list_algorithms::linear_search::linear_search;
//! let idx = linear_search(&[1, 2, 3], &2);
//! ```