Some sorting algorithms for fun and to practice in several development languages with clean code.
Bubble Sort, Counting Sort, Insertion Sort, Selection Sort, Tree Sort
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