Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ppmpreetham/counter-sort

A Unique Sorting Algorithm
https://github.com/ppmpreetham/counter-sort

algorithm dsa-algorithm sorting-algorithm

Last synced: 10 days ago
JSON representation

A Unique Sorting Algorithm

Awesome Lists containing this project

README

        

# Counter-sort
This Algorithm uses iteration to sort elemnts in the array with a time complexity of $`O(n^2)`$.

## Setup
### Usage in Python

```python
import {counter-sort} from '@Preetham-ai/counter-sort'

test_list=[3,2,5,2,3,6,99,72]
print(counter-sort(test_list))
```

### Usage in Rust
```rust
fn main() {
let test_list = vec![3,2,5,2,3,6,99,72];
let result = counter_sort(test_list);
println!("{:?}", result);
} ```