The Algorithms
Search any algorithm
About
Donate
Go
GitHub repository
undefined
Constraints
More
Backtracking
Backtracking
Subset Sum
More
Backtracking
Combination
More
Backtracking
Generate Parentheses
More
Bit Manipulation
Bit Manipulation
Reverse Bits
More
Cache
Cache
Lfu
More
Cache
Lru
More
Checksum
Checksum
Crc 8
More
Ciphers
Ciphers
Caesar
More
Ciphers
/
Diffiehellman
Diffiehellmankeyexchange
More
Ciphers
Doc
More
Ciphers
Polybius
More
Ciphers
Railfence
More
Ciphers
Rot 13
More
Ciphers
RSA
More
Ciphers
/
Rsa
Rsa 2
More
Ciphers
Transposition
More
Ciphers
XOR Cipher
+2
More
Ciphers
Base 64
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Ciphers
Doc
More
Compression
Compression
Huffmancoding
More
Compression
Rlecoding
More
Conversions
Conversions
Binary to Decimal
+4
More
Conversions
Decimal to Binary
+5
More
Conversions
Inttoroman
More
Conversions
Rgbhex
More
Conversions
Romantoint
More
Data Structures
Data Structures
/
Graphs
Bfs
More
Data Structures
Graph
+1
More
Data Structures
Graph
+1
More
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Data Structures
/
Linked List
Is Palindrome
+1
More
Data Structures
/
Stacks
Parenthesis
More
Data Structures
/
Queues
Deque
More
Data Structures
Dynamic Array
More
Data Structures
/
Binary Tree
Fenwick Tree
+1
More
Data Structures
/
Hashing
Hash Map
More
Data Structures
Heap
+1
More
Data Structures
/
Linked List
Singly Linked List
+3
More
Data Structures
/
Linked List
Queue Linked List
More
Data Structures
/
Binary Tree
Segment Tree
+3
More
Data Structures
/
Stacks
Stack Array
More
Data Structures
/
Stacks
Stack with Singly Linked List
+3
More
Data Structures
/
Binary Tree
AVL Tree
+2
More
Data Structures
Rb Tree
More
Data Structures
Tree
More
Data Structures
Trie
More
Divide and Conquer
Divide and Conquer
Mergesort
+19
More
Dynamic
Dynamic
Longestincreasingsubsequencegreedy
More
Dynamic
Traprainwater
More
Dynamic Programming
Dynamic Programming
Abbreviation
More
Dynamic Programming
Coin Change
+6
More
Dynamic Programming
Edit Distance
+1
More
Dynamic Programming
Fibonacci Numbers
+12
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Longest Palindromic Subsequence
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Unique Paths
More
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Factorial
+13
More
Dynamic Programming
Fibonacci Numbers
+12
More
Dynamic Programming
Max Subarray Sum
More
Graphs
Graphs
Articulation Points
More
Graphs
Bellman Ford
+4
More
Graphs
Breadth First Search
+3
More
Graphs
/
Coloring
Backtracking
More
Graphs
/
Coloring
Bipartite
More
Graphs
Cycle
More
Graphs
Depth First Search
+4
More
Graphs
Dijkstra
+4
More
Graphs
Edmondkarp
More
Graphs
Kruskal
More
Graphs
Prim
More
Graphs
Topological
More
Hashing
Hashing
Luhn
More
Hashing
Sha 256
More
Math
Math
Binomial Coefficient
+1
More
Math
Catalan
More
Math
Matrix Multiplication
More
Math
Abs
+5
More
Math
Aliquot Sum
+5
More
Math
/
Special Numbers
Armstrong Number
+8
More
Math
Abs
+5
More
Math
/
Series
Arithmetic Mean
More
Math
/
Binary
Bitcounter
More
Math
/
Binary
Checkisnumberpoweroftwo
More
Math
Fast Inverse Sqrt
More
Math
/
Binary
Logarithm
More
Math
/
Binary
Rbc
More
Math
/
Binary
Sqrt
More
Math
/
Binary
Xorsearch
More
Math
Binomial Coefficient
+1
More
Math
/
Special Numbers
Catalan Number
More
Math
/
Binary
Checkisnumberpoweroftwo
More
Math
Cos
More
Math
Euler's Totient
+2
More
Math
/
Gcd
Extended
More
Math
Extended Gcd
More
Math
/
Gcd
Extendedgcditerative
More
Math
GCD
More
Math
/
Gcd
Gcditerative
More
Math
/
Geometry
Distance
More
Math
/
Geometry
Straightlines
More
Math
Isautomorphic
More
Math
Kthnumber
More
Math
LCM
+2
More
Math
Lerp
More
Math
Liouville
More
Math
/
Matrix
Add
More
Math
/
Matrix
Checkequal
More
Math
/
Matrix
Copy
More
Math
Determinant
More
Math
/
Matrix
Isvalid
More
Math
/
Matrix
Matchdimensions
More
Math
Matrix
More
Math
/
Matrix
Multiply
More
Math
/
Matrix
Strassenmatrixmultiply
More
Math
/
Matrix
String
More
Math
/
Matrix
Submatrix
More
Math
/
Matrix
Subtract
More
Math
/
Max
Bitwisemax
More
Math
Max
More
Math
Median
More
Math
/
Min
Bitwisemin
More
Math
Min
More
Math
Mobius
More
Math
Mode
More
Math
/
Modular
Exponentiation
More
Math
/
Modular
Inverse
More
Math
/
Moserdebruijnsequence
Sequence
More
Math
Perfect Number
+6
More
Math
/
Permutation
Heaps
More
Math
/
Permutation
Next Permutation
More
Math
/
PI
Montecarlopi
More
Math
/
PI
Spigotpi
More
Math
Pollard
More
Math
/
Power
Fastexponent
More
Math
/
Power
Powvialogarithm
More
Math
/
Prime
Millerrabintest
More
Math
Prime Factorization
More
Math
/
Prime
Sieve
More
Math
/
Prime
Sieve 2
More
Math
/
Prime
Twin
More
Math
/
Special Numbers
Pronic Number
More
Math
Pythagoras
More
Math
Sin
More
Matrix
Matrix
Pascal Triangle
More
Numerical Methods
Numerical Methods
Mean
More
Others
Others
Greedy
More
Others
Krishnamurthy
More
Others
Nested Brackets
More
Others
/
Password
Generator
More
Others
KMP
More
Searches
Searches
Union Find
+1
More
Searches
Binary
More
Searches
Errors
More
Searches
Interpolation
More
Searches
Jump
More
Searches
Jump 2
More
Searches
Linear
More
Searches
Selectk
More
Searches
Ternary
More
Searches
Testcases
More
Sorts
Sorts
Binary Insertion Sort
+4
More
Sorts
Bogo Sort
+7
More
Sorts
Bubble Sort
+19
More
Sorts
Bucket Sort
+5
More
Sorts
Circle Sort
More
Sorts
Cocktail Sort
+3
More
Sorts
Comb Sort
+8
More
Sorts
Counting Sort
+8
More
Sorts
Cycle Sort
+5
More
Sorts
Exchange Sort
More
Sorts
Heap Sort
+15
More
Sorts
Insertion Sort
+18
More
Sorts
Pancake Sort
+7
More
Sorts
Patience Sort
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Quick Sort
+19
More
Sorts
Radix Sort
+9
More
Sorts
Selection Sort
+14
More
Sorts
Shell Sort
+10
More
Sorts
Simple Sort
More
Sorts
Tim Sort
+2
More
Sqrt
Sqrt
Sqrtdecomposition
More
Strings
Strings
/
Aho-Corasick
Advancedahocorasick
More
Strings
Aho Corasick
More
Strings
/
Aho-Corasick
Shared
More
Strings
Bom
More
Strings
Charoccurrence
More
Strings
Genetic
More
Strings
Guid
More
Strings
Horspool
More
Strings
Is Isogram
More
Strings
Issubsequence
More
Strings
Levenshtein Distance
+2
More
Strings
/
Manacher
Longestpalindrome
More
Strings
Is Pangram
More
Strings
Boyer Moore
More
Strings
/
Searches
Naive
More
Strings
/
Aho-Corasick
Shared
More
Structure
Structure
/
Circularqueue
Circularqueuearray
More
Structure
/
Linked List
Cyclic
More
Structure
/
Linked List
Doubly
More
Structure
/
Queues
Queuearray
More
Structure
/
Queues
Queuelinklistwithlist
More
Structure
Set
More
Structure
/
Stacks
Stack Linked List with List
More
Structure
/
Tree
Bstree
More
Structure
/
Tree
Btree
More
© The Algorithms 2024
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
X
Source code
Contact