Some sorting algorithms for fun in various languages (CPython, Rust, C++, PHP, JS (deno)...)
bubble-sort
counting-sort
deno
insertion-sort
javascript
js
python
rust
selection-sort
sort
sorting
sorting-algorithms
- Python 23.2%
- Rust 22.7%
- C++ 20.7%
- PHP 18.6%
- JavaScript 14.8%
| .vscode | ||
| c++ | ||
| js | ||
| php | ||
| python | ||
| rust | ||
| .gitignore | ||
| README.md | ||
Sorting Algorithms
Some sorting algorithms for fun and to practice in several development languages with clean code.
Algorithms:
Bubble Sort, Counting Sort, Insertion Sort, Selection Sort, Tree Sort
Languages:
Written in CPython:
- Bubble Sort
- Counting Sort
- Insertion Sort
- Selection Sort
- Tree Sort
in python folder:
$ python3 main.py
Written in PHP:
- Bubble Sort
- Counting Sort
- Insertion Sort
- Selection Sort
in php folder:
$ php main.php
Written in JS (deno):
- Bubble Sort
- Counting Sort
- Insertion Sort
- Selection Sort
in js folder:
$ deno run main.js
Written in C++:
- Bubble Sort
- Counting Sort
- Insertion Sort
- Selection Sort
in c++ folder:
$ g++ main.cpp ui/app.cpp algos/algos.cpp -o sortalgo
$ ./sortalgo
Written in Rust:
- Bubble Sort
- Counting Sort
- Insertion Sort
- Selection Sort
in rust folder:
$ cargo build --release
$ ./target/release/sortalgo