Some sorting algorithms for fun in various languages (CPython, Rust, C++, PHP, JS (deno)...)
  • Python 23.2%
  • Rust 22.7%
  • C++ 20.7%
  • PHP 18.6%
  • JavaScript 14.8%
Find a file
2023-08-10 18:52:36 +02:00
.vscode Bubble sort ok 2021-12-21 11:49:16 +01:00
c++ [C++] Update compiled version 2022-01-10 08:59:03 +01:00
js [JS] Bench process only 2022-01-10 08:48:43 +01:00
php [PHP] Bench only process 2022-01-10 08:46:07 +01:00
python [Python] Add Tree sort 2022-01-19 09:14:38 +01:00
rust [Rust] Add some basic tests 2022-01-18 18:48:50 +01:00
.gitignore [Rust] Add Rust exclusions 2022-01-09 17:41:01 +01:00
README.md Update README.md 2023-08-10 18:52:36 +02:00

Sorting Algorithms

CodeFactor

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