Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ppmpreetham/counter-sort
- Owner: ppmpreetham
- License: other
- Created: 2023-12-31T16:18:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-05T09:33:38.000Z (9 months ago)
- Last Synced: 2024-12-06T04:13:23.229Z (2 months ago)
- Topics: algorithm, dsa-algorithm, sorting-algorithm
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
} ```