This repository contains examples of various algorithms which were written on different programming languages.
Language | BrainFuck | C | C# | C++ | Crystal | Go | Haskell | Java | JavaScript | Kotlin | Perl | Python | Racket | Ruby | Rust | Scala | Swift |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AStar Search | ๐ | ๐ | |||||||||||||||
Bellman Ford | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Binary GCD | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Binary Search | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||
Bitap Algorithm | ๐ | ๐ | |||||||||||||||
Bitonic Sort | ๐ | ๐ | ๐ | ||||||||||||||
Bloom Filter | ๐ | ||||||||||||||||
Borweins Algorithm | ๐ | ๐ | ๐ | ||||||||||||||
Bubble Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||
Cocktail Sort | ๐ | ๐ | |||||||||||||||
Coin Change | ๐ | ||||||||||||||||
Conjugate Gradient | ๐ | ๐ | |||||||||||||||
Connected Component Labeling | ๐ | ||||||||||||||||
Count Sort | ๐ | ||||||||||||||||
Counting Inversions | ๐ | ๐ | ๐ | ||||||||||||||
Counting Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||||||
Cycle Sort | ๐ | ๐ | ๐ | ||||||||||||||
Depth First Search | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||||||
Diffie Hellman | ๐ | ๐ | ๐ | ||||||||||||||
Dijkstras | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||||||
Doomsday | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||
Dynamic Programming | ๐ | ||||||||||||||||
Edit Distance | ๐ | ๐ | ๐ | ||||||||||||||
Edmonds Karp | ๐ | ||||||||||||||||
Elevator Algorithm | ๐ | ||||||||||||||||
Extended Euclidean Algorithm | ๐ | ๐ | |||||||||||||||
Factorial | ๐ | ๐ | ๐ | ๐ | |||||||||||||
Fast Fourier Transform | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Fenwick Tree | ๐ | ||||||||||||||||
Fibonacci | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |
Fisher Yates Shuffle | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||
Flood Fill | ๐ | ๐ | ๐ | ๐ | |||||||||||||
Floyds Algorithm | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Greatest Common Divisor | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||
Hamming Distance | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||
Heap Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||||
Heavy Light Decomposition | ๐ | ||||||||||||||||
Histogram Equalization | ๐ | ||||||||||||||||
Insertion Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||
Johnson Algorithm | ๐ | ๐ | |||||||||||||||
Kadanes | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||
Knapsack | ๐ | ๐ | |||||||||||||||
Knuth Morris Prath | ๐ | ๐ | ๐ | ||||||||||||||
Kruskals Algorithm | ๐ | ๐ | |||||||||||||||
Leaky Bucket | ๐ | ||||||||||||||||
Linear Search | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||
Longest Bitonic Subsequence | ๐ | ||||||||||||||||
Longest Common Subsequence | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Longest Increasing Subsequence | ๐ | ๐ | ๐ | ๐ | |||||||||||||
Longest Path | ๐ | ๐ | |||||||||||||||
Longest Subset Zero Sum | ๐ | ||||||||||||||||
Matrix Exponentiation | ๐ | ||||||||||||||||
Merge Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||
Min Max ABPruning | ๐ | ||||||||||||||||
Minimax | ๐ | ๐ | |||||||||||||||
Pearson Hashing | ๐ | ||||||||||||||||
Permutations | ๐ | ๐ | ๐ | ||||||||||||||
Persistent Data Structures | ๐ | ||||||||||||||||
Postman Sort | ๐ | ||||||||||||||||
Primality Tests | ๐ | ๐ | |||||||||||||||
Prims | ๐ | ||||||||||||||||
Prufer Code | ๐ | ||||||||||||||||
Quick Select | ๐ | ๐ | ๐ | ๐ | |||||||||||||
Quick Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||
Rabin Karp | ๐ | ๐ | |||||||||||||||
Radix Sort | ๐ | ๐ | ๐ | ๐ | |||||||||||||
Segment Tree | ๐ | ||||||||||||||||
Segmented Sieve | ๐ | ๐ | ๐ | ||||||||||||||
Selection Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||
Sequence Alignment | ๐ | ||||||||||||||||
Shell Sort | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Sieveof Eratosthenes | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||||||
String To Token | ๐ | ||||||||||||||||
Strongly Connected Graph.cpp | ๐ | ||||||||||||||||
Swap | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | ๐ | |||||||||
Tarjans Offline LCA | ๐ | ||||||||||||||||
Ternary Search | ๐ | ๐ | ๐ | ๐ | ๐ | ||||||||||||
Topological Sort | ๐ | ๐ | ๐ | ||||||||||||||
Unary Coding | ๐ | ๐ | ๐ | ||||||||||||||
Union Find | ๐ | ๐ | ๐ | ||||||||||||||
VEGASAlgorithm | ๐ |
List of Algorithms Folder structure should be like this [language]/[Algorithm name]/file For example:
- Go/BubbleSort/BubbleSort.go
- C++/QuickSort/QuickSort.cpp