Skip to content

Some sorting algorithms for fun in various languages (CPython, Rust, C++, PHP, JS (deno)...)

Notifications You must be signed in to change notification settings

Valbou/sorting_algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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