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