The Algorithms
Search any algorithm
About
Donate
Javascript
GitHub repository
Backtracking
Backtracking
N Queens
More
Backtracking
Sudoku Solver
+1
More
Backtracking
All Combinations Of Size K
More
Backtracking
Generate Permutations
More
Backtracking
Knight Tour
More
Backtracking
Rat In A Maze
More
Backtracking
Sudoku Solver
+1
More
Bit Manipulation
Bit Manipulation
Is Even
More
Bit Manipulation
Log Two
More
Bit Manipulation
Set Bit
More
Bit Manipulation
Binary Count Setbits
More
Bit Manipulation
Next Power Of Two
More
Bit Manipulation
Is Power of Two
More
Cache
Cache
Memoize
More
Cellular Automata
Cellular Automata
Conways Game of Life
More
Ciphers
Ciphers
Atbash
More
Ciphers
XOR Cipher
+2
More
Ciphers
Caesar Cipher
More
Ciphers
Vigenere Cipher
More
Ciphers
Affine Cipher
More
Ciphers
Rot 13
More
Ciphers
Key Finder
More
Ciphers
Keyword Shifted Alphabet
More
Conversions
Conversions
Meter To Feet Conversion
More
Conversions
Decimal to Octal
More
Conversions
Decimal to Binary
+3
More
Conversions
Date To Day
More
Conversions
Lower Case Conversion
More
Conversions
Ounces To Kilograms
More
Conversions
Decimal To Hex
More
Conversions
Oct To Decimal
More
Conversions
Liters To Imperial Gallons
More
Conversions
Upper Case Conversion
More
Conversions
Date Day Difference
More
Conversions
Hex To Binary
More
Conversions
Binary to Decimal
+2
More
Conversions
RGB To Hex
More
Conversions
Rgb Hsv Conversion
More
Conversions
Liters To US Gallons
More
Conversions
Roman To Decimal
More
Conversions
Binary To Hex
More
Conversions
Decimal To Roman
More
Conversions
Temperature Conversion
More
Conversions
Array Buffer To Base 64
More
Conversions
Arbitrary Base
More
Conversions
Base 64 To Array Buffer
More
Conversions
Railway Time Conversion
More
Conversions
Hex To RGB
More
Conversions
Hex To Decimal
More
Conversions
Title Case Conversion
More
Data Structures
Data Structures
Graph
More
Data Structures
/
Graphs
Graph 2
More
Data Structures
/
Graphs
Graph 3
More
Data Structures
/
Linked List
Singly Circular Linked List
More
Data Structures
/
Linked List
Doubly Linked List
+2
More
Data Structures
/
Linked List
Singly Linked List
+1
More
Data Structures
/
Linked List
Add Two Numbers
More
Data Structures
/
Linked List
Cycle Detection
More
Data Structures
/
Linked List
Reverse Singly Linked List
More
Data Structures
/
Heap
Max Heap
More
Data Structures
/
Heap
Min Priority Queue
More
Data Structures
/
Heap
Min Heap
More
Data Structures
Trie
More
Data Structures
/
Binary Tree
AVL Tree
+1
More
Data Structures
/
Binary Tree
Binary Search Tree
+1
More
Data Structures
/
Binary Tree
Segment Tree
+1
More
Data Structures
/
Array
Local Maximom Point
More
Data Structures
/
Array
Number Of Local Maximum Points
More
Data Structures
/
Array
Reverse
More
Data Structures
Queue
More
Data Structures
/
Queues
Queue Using 2 Stacks
More
Data Structures
/
Queues
Circular Queue
More
Data Structures
/
Vectors
Vector 2
More
Data Structures
Stack
+2
More
Data Structures
/
Stacks
Stack ES 6
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Divide and Conquer
Divide and Conquer
Mergesort
+17
More
Dynamic Programming
Dynamic Programming
Sum of Subset
More
Dynamic Programming
Factorial
+10
More
Dynamic Programming
Fibonacci Numbers
+10
More
Dynamic Programming
Zero One Knapsack
More
Dynamic Programming
Tribonacci Number
More
Dynamic Programming
Number Of Subset Equal To Given Sum
More
Dynamic Programming
Find Month Calendar
More
Dynamic Programming
Fast Fibonacci Number
More
Dynamic Programming
Minimum Cost Path
More
Dynamic Programming
Kadane Algo
More
Dynamic Programming
Catalan Numbers
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Unique Paths
More
Dynamic Programming
Trapping Rain Water
More
Dynamic Programming
Unique Paths 2
More
Dynamic Programming
Max Non Adjacent Sum
More
Dynamic Programming
Max Product Of Three
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Coin Change
+4
More
Dynamic Programming
Longest Valid Parentheses
More
Dynamic Programming
/
Sliding Window
Permutationin String
More
Dynamic Programming
/
Sliding Window
Longest Substring Without Repeating Characters
More
Dynamic Programming
Edit Distance
+2
More
Dynamic Programming
Longest Palindromic Subsequence
More
Dynamic Programming
Climbing Stairs
More
Dynamic Programming
Shuf
More
Dynamic Programming
Fibonacci Numbers
+10
More
Dynamic Programming
Floyd Warshall
+2
More
Dynamic Programming
Factorial
+10
More
Fractals
Fractals
Mandelbrot
More
Fractals
Koch Snowflake
More
Fractals
Koch Snowflake
More
Geometry
Geometry
Circle
More
Geometry
Sphere
More
Geometry
Convex Hull Graham
More
Geometry
Pyramid
More
Geometry
Cone
More
Graphs
Graphs
Depth First Search
+4
More
Graphs
Number Of Islands
More
Graphs
Density
More
Graphs
Binary Lifting
More
Graphs
Connected Components
More
Graphs
Dijkstra
+2
More
Graphs
Kruskal MST
More
Graphs
Bellman Ford
+2
More
Graphs
Breadth First Shortest Path
More
Graphs
Node Neighbors
More
Graphs
Depth First Search Recursive
More
Graphs
Kosaraju
More
Graphs
Dijkstra Smallest Path
More
Graphs
Depth First Search Iterative
More
Graphs
Breadth First Search
+3
More
Graphs
LCA Binary Lifting
More
Graphs
Prim MST
More
Hashing
Hashing
Sha 1
More
Hashing
Sha 256
More
Math
Math
Binomial Coefficient
More
Math
Radians to Degrees
More
Math
Area
More
Math
Square Root Logarithmic
More
Math
Binary Convert
More
Math
Co Prime Check
More
Math
Pronic Number
More
Math
Reverse Number
More
Math
Mean Absolute Deviation
More
Math
Perfect Number
More
Math
Extended Euclidean GCD
More
Math
Number of Digits
More
Math
Softmax
More
Math
Friendly Numbers
More
Math
Reverse Polish Notation
More
Math
Square Root
More
Math
Matrix Multiplication
More
Math
Arithmetic Geometric Mean
More
Math
Simpson Integration
More
Math
Sum of Digits
More
Math
Armstrong Number
+7
More
Math
Average Mean
More
Math
Is Divisible
More
Math
Decimal Isolate
More
Math
Leap Year
More
Math
Midpoint Integration
More
Math
Grid Get
More
Math
Twin Prime
More
Math
Permutation And Combination
More
Math
Pow
More
Math
Average Median
More
Math
Farey Approximation
More
Math
Eulers Totient
More
Math
Sum of Geometric Progression
More
Math
Find Min
+1
More
Math
Linear Sieve
More
Math
Juggler Sequence
More
Math
Binary Exponentiation Recursive
More
Math
Find Max Recursion
More
Math
Signum
More
Math
Sieve Of Eratosthenes Int Array
More
Math
LCM
+2
More
Math
Liouville Function
More
Math
Polynomial
More
Math
Pow Logarithmic
More
Math
Degrees to Radians
More
Math
Perfect Square
+1
More
Math
Modular Arithmetic
More
Math
Get Euclid GCD
More
Math
Lucas Series
More
Math
Volume
More
Math
Is Palindrome Integer Number
More
Math
Matrix Exponentiation Recursive
More
Math
Zellers Congruence Algorithm
More
Math
Sieve of Eratosthenes
+4
More
Math
Circular Arc
More
Math
Euler Method
More
Math
While Loop Factorial
More
Math
Binary Exponentiation Iterative
More
Math
Exponential Function
More
Math
Decimal Expansion
More
Math
Prime
+7
More
Math
Collatz Sequence
More
Math
Coordinate
More
Math
Mean Square Error
More
Math
Eulers Totient Function
More
Math
Aliquot Sum
+2
More
Math
Abs
+3
More
Math
Factors
More
Math
Find Min Iterator
More
Math
Perfect Cube
More
Math
Prime Factors
More
Math
Shors Algorithm
More
Math
Figurate Number
More
Math
Check Kishnamurthy Number
More
Math
Hexagonal Number
More
Math
Is Square Free
More
Math
Mobius Function
More
Math
Is Odd
More
Math
Find Hcf
More
Math
Pi Approximation Monte Carlo
More
Math
Int To Base
More
Math
Modular Binary Exponentiation Recursive
More
Math
Count Numbers Divisible
More
Math
Bisection Method
More
Math
Sieve of Eratosthenes
+4
More
Matrix
Matrix
Pascal Triangle
More
Navigation
Navigation
Haversine
More
Others
Others
Lfu Cache
More
Others
Lru Cache
More
Others
Tower of Hanoi
+1
More
Recursive
Recursive
Binary Equivalent
More
Recursive
Letter Combination
More
Recursive
Eucledian GCD
More
Recursive
Subsequence Recursive
More
Recursive
Fibonacci Number Recursive
More
Recursive
Flood Fill
More
Searches
Searches
Union Find
More
Searches
Binary Search
+13
More
Searches
Quick Select Search
More
Searches
Minesweeper
More
Searches
Ternary Search
+5
More
Searches
Sliding Window
More
Searches
String Search
More
Searches
Fibonacci Search
+4
More
Searches
Linear Search
+12
More
Searches
Interpolation Search
+4
More
Searches
Exponential Search
More
Searches
Jump Search
+7
More
Searches
Quick Select
More
Searches
Binary Search
+13
More
Sorts
Sorts
Cycle Sort
+2
More
Sorts
Shell Sort
+7
More
Sorts
Heap Sort V 2
More
Sorts
Pancake Sort
+5
More
Sorts
Quick Sort
+17
More
Sorts
Swap Sort
More
Sorts
Heap Sort
+12
More
Sorts
Tim Sort
+1
More
Sorts
Fisher Yates Shuffle
More
Sorts
Insertion Sort
+16
More
Sorts
Bucket Sort
+4
More
Sorts
Simplified Wiggle Sort
More
Sorts
Selection Sort
+12
More
Sorts
Radix Sort
+7
More
Sorts
Topological Sort
More
Sorts
Bogo Sort
+5
More
Sorts
Odd Even Sort
More
Sorts
Gnome Sort
+6
More
Sorts
Intro Sort
More
Sorts
Find Second Largest Element
More
Sorts
Cocktail Shaker Sort
More
Sorts
Comb Sort
+7
More
Sorts
Counting Sort
+5
More
Sorts
Bead Sort
+1
More
Sorts
Quick Sort Recursive
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Bubble Sort
+17
More
Sorts
Binary Insertion Sort
More
Sorts
Flash Sort
More
Sorts
Alpha Numerical Sort
More
Sorts
Stooge Sort
More
Strings
Strings
Check Snake Case
More
Strings
First Unique Character
More
Strings
Check Palindrome
More
Strings
Max Word
More
Strings
Check Anagram
More
Strings
Generate GUID
More
Strings
Upper
More
Strings
Scramble Strings
More
Strings
Boyer Moore
More
Strings
Check Camel Case
More
Strings
KMP Pattern Searching
More
Strings
Permutate String
More
Strings
Lower
More
Strings
Reverse String
More
Strings
Count Substrings
More
Strings
Count Letters
More
Strings
Check Kebab Case
More
Strings
Reverse Words
More
Strings
Max Character
More
Strings
Dice Coefficient
More
Strings
Check Pascal Case
More
Strings
Check Rearrange Palindrome
More
Strings
Hamming Distance
+2
More
Strings
Check Pangram
More
Strings
Validate Credit Card
More
Strings
Validate Url
More
Strings
Check Word Occurrence
More
Strings
Validate Email
More
Strings
Check Exceeding
More
Strings
Levenshtein Distance
+1
More
Strings
Check Flat Case
More
Strings
Format Phone Number
More
Strings
Percentage Of Letters
More
Strings
Is Palindrome
More
Strings
Pattern Matching
More
Strings
Alternative String Arrange
More
Strings
Z Function
More
Strings
Count Vowels
More
Strings
Alpha Numeric Palindrome
More
Strings
Create Permutations
More
Strings
Palindrome
+2
More
Strings
Levenshtein Distance
+1
More
Strings
Palindrome
+2
More
Timing-Functions
Timing-Functions
Interval Timer
More
Timing-Functions
Get Month Days
More
Tree
Tree
Breadth First Tree Traversal
More
© The Algorithms 2022
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
Twitter
Source code
Contact