The Algorithms
Search any algorithm
About
Donate
Java
GitHub repository
undefined
Minimizing Lateness
More
Audio Filters
Audio Filters
Iir Filter
More
Backtracking
Backtracking
All Paths From Source To Target
More
Backtracking
Array Combination
More
Backtracking
Combination
More
Backtracking
Knights Tour
More
Backtracking
M Coloring
More
Backtracking
Maze Recursion
More
Backtracking
N Queens
More
Backtracking
Permutation
More
Backtracking
Power Sum
More
Backtracking
Word Search
More
Backtracking
Hamiltonian Cycle
More
Backtracking
Subset Sum
More
Backtracking
Sudoku Solver
+1
More
Bit Manipulation
Bit Manipulation
Bit Swap
More
Bit Manipulation
Highest Set Bit
More
Bit Manipulation
Index of Rightmost Set Bit
More
Bit Manipulation
Is Even
More
Bit Manipulation
Is Power Two
More
Bit Manipulation
Non Repeating Number Finder
More
Bit Manipulation
Numbers Different Signs
More
Bit Manipulation
Reverse Bits
More
Bit Manipulation
Single Bit Operations
More
Ciphers
Ciphers
AES
More
Ciphers
AES Encryption
More
Ciphers
Affine Cipher
More
Ciphers
Blowfish
More
Ciphers
Caesar
More
Ciphers
Columnar Transposition Cipher
More
Ciphers
DES
More
Ciphers
Hill Cipher
More
Ciphers
Polybius
More
Ciphers
Product Cipher
More
Ciphers
RSA
More
Ciphers
Simple Sub Cipher
More
Ciphers
Simple Substitution Cipher
More
Ciphers
Vigenere
More
Ciphers
/
A 5
A 5 Cipher
More
Ciphers
/
A 5
A 5 Key Stream Generator
More
Ciphers
/
A 5
Base LFSR
More
Ciphers
/
A 5
Composite LFSR
More
Ciphers
/
A 5
LFSR
More
Ciphers
/
A 5
Utils
More
Compression
Compression
Huffman
More
Conversions
Conversions
Any Base To Any Base
More
Conversions
Any Base To Decimal
More
Conversions
Anyto Any
More
Conversions
Binary to Decimal
+3
More
Conversions
Binary to Hexadecimal
More
Conversions
Binary to Octal
More
Conversions
Decimal To Any Base
More
Conversions
Decimal to Binary
+4
More
Conversions
Decimal to Hexadecimal
More
Conversions
Decimal to Octal
More
Conversions
Hex To Oct
More
Conversions
Hexa Decimal To Binary
More
Conversions
Hexadecimal to Decimal
More
Conversions
Integer To Roman
More
Conversions
Octal to Binary
More
Conversions
Octal to Decimal
More
Conversions
Octal to Hexadecimal
More
Conversions
Rgb Hsv Conversion
More
Conversions
Roman To Integer
More
Conversions
Turkish To Latin Conversion
More
CPU Scheduling Algorithms
CPU Scheduling Algorithms
Fcfs Scheduling
More
Data Structures
Data Structures
Node
More
Data Structures
/
Bags
Bag
More
Data Structures
/
Hashing
Bloom Filter
More
Data Structures
/
Buffers
Circular Buffer
More
Data Structures
/
Cache
MRU Cache
More
Data Structures
Disjoint Set Union
More
Data Structures
Node
More
Data Structures
Dynamic Array
More
Data Structures
/
Graphs
Bipartite Grapf DFS
More
Data Structures
/
Graphs
Connected Component
More
Data Structures
/
Graphs
Cycles
More
Data Structures
/
Graphs
DIJSKSTRAS ALGORITHM
More
Data Structures
Graphs
More
Data Structures
/
Graphs
Kahns Algorithm
More
Data Structures
/
Graphs
Matrix Graphs
More
Data Structures
/
Graphs
Tarjans Algorithm
More
Data Structures
/
Hash Map
/
Hashing
Generic Hash Map Using Array
More
Data Structures
/
Hash Map
/
Hashing
Generic Hash Map Using Array List
More
Data Structures
/
Hashing
Hash Map
More
Data Structures
/
Hash Map
/
Hashing
Hash Map Cuckoo Hashing
More
Data Structures
/
Hash Map
/
Hashing
Linear Probing Hash Map
More
Data Structures
/
Hash Map
/
Hashing
Main
More
Data Structures
/
Hash Map
/
Hashing
Main Cuckoo Hashing
More
Data Structures
/
Hash Map
/
Hashing
Majority Element
More
Data Structures
/
Hash Map
/
Hashing
Map
More
Data Structures
/
Heaps
Empty Heap Exception
More
Data Structures
/
Heaps
Fibonacci Heap
More
Data Structures
/
Heaps
Generic Heap
More
Data Structures
Heap
+1
More
Data Structures
/
Heaps
Heap Element
More
Data Structures
/
Heaps
Leftist Heap
More
Data Structures
/
Heap
Max Heap
More
Data Structures
/
Heap
Min Heap
More
Data Structures
/
Heap
Min Priority Queue
More
Data Structures
/
List
Circle Linked List
More
Data Structures
/
List
Count Singly Linked List Recursion
More
Data Structures
/
List
Create And Detect Loop
More
Data Structures
/
List
Cursor Linked List
More
Data Structures
/
Linked List
Doubly Linked List
+4
More
Data Structures
/
List
Merge Sorted Array List
More
Data Structures
/
List
Merge Sorted Singly Linked List
More
Data Structures
/
List
Merge K Sorted Linkedlist
More
Data Structures
/
List
Quick Sort Linked List
More
Data Structures
/
List
Random Node
More
Data Structures
/
Linked List
Reverse K Group
More
Data Structures
/
List
Rotate Singly Linked Lists
More
Data Structures
/
List
Search Singly Linked List Recursion
More
Data Structures
/
Linked List
Singly Linked List
+3
More
Data Structures
/
Linked List
Skip List
More
Data Structures
/
Queues
Circular Queue
More
Data Structures
/
Queues
Deques
More
Data Structures
/
Queues
Generic Array List Queue
More
Data Structures
/
Queues
Linked Queue
More
Data Structures
/
Queues
Priority Queues
More
Data Structures
Queues
More
Data Structures
/
Stacks
Node Stack
More
Data Structures
/
Stacks
Reverse Stack
More
Data Structures
/
Stacks
Stack Array
More
Data Structures
/
Stacks
Stack Array List
More
Data Structures
/
Stacks
Stack with Singly Linked List
+3
More
Data Structures
/
Tree
AVL Simple
More
Data Structures
/
Binary Tree
AVL Tree
+2
More
Data Structures
/
Tree
BST From Sorted Array
More
Data Structures
/
Tree
BST Iterative
More
Data Structures
/
Tree
BST Recursive
More
Data Structures
/
Tree
BST Recursive Generic
More
Data Structures
/
Tree
Binary Tree
More
Data Structures
/
Tree
Ceil In Binary Search Tree
More
Data Structures
/
Tree
Check Binary Tree Is Valid BST
More
Data Structures
/
Tree
Check If Binary Tree Balanced
More
Data Structures
/
Tree
Check Tree Is Symmetric
More
Data Structures
/
Tree
Create Binary Tree From Inorder Preorder
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
/
Tree
Generic Tree
More
Data Structures
/
Tree
Inorder Traversal
More
Data Structures
/
Tree
KD Tree
More
Data Structures
/
Tree
LCA
More
Data Structures
/
Binary Tree
Lazy Segment Tree
More
Data Structures
/
Tree
Level Order Traversal
More
Data Structures
/
Tree
Post Order Traversal
More
Data Structures
/
Tree
Pre Order Traversal
More
Data Structures
/
Tree
Print Top Viewof Tree
More
Data Structures
/
Tree
Red Black BST
More
Data Structures
/
Tree
Same Trees Check
More
Data Structures
/
Binary Tree
Segment Tree
+3
More
Data Structures
/
Tree
Tree Random Node
More
Data Structures
/
Tree
Trie Imp
More
Data Structures
/
Tree
Vertical Order Traversal
More
Data Structures
/
Tree
Zigzag Traversal
More
Data Structures
/
Tree
Nearest Right Key
More
Data Structures
Node
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Data Structures
Queue Using Two Stacks
More
Devutils
Devutils
/
Entities
Process Details
More
Devutils
/
Nodes
Large Tree Node
More
Devutils
/
Nodes
Simple Node
More
Devutils
/
Nodes
Simple Tree Node
More
Devutils
/
Nodes
Tree Node
More
Devutils
/
Searches
Matrix Search Algorithm
More
Devutils
/
Searches
Search Algorithm
More
Digital Image Processing
Digital Image Processing
Rotation
More
Divide and Conquer
Divide and Conquer
Closest Pair
More
Divide and Conquer
Skyline Algorithm
More
Divide and Conquer
Strassen Matrix Multiplication
More
Divide and Conquer
Mergesort
+19
More
Dynamic Programming
Dynamic Programming
Floyd Warshall
+3
More
Dynamic Programming
Board Path
More
Dynamic Programming
Boundary Fill
More
Dynamic Programming
Brute Force Knapsack
More
Dynamic Programming
Climbing Stairs
More
Dynamic Programming
Coin Change
+6
More
Dynamic Programming
Count Friends Pairing
More
Dynamic Programming
Dice Throw
More
Dynamic Programming
Edit Distance
+1
More
Dynamic Programming
Egg Dropping
More
Dynamic Programming
Fibonacci Numbers
+11
More
Dynamic Programming
Kadane Algorithm
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Knapsack Memoization
More
Dynamic Programming
Longest Alternating Subsequence
More
Dynamic Programming
Longest Common Subsequence
+1
More
Dynamic Programming
Longest Increasing Subsequence
More
Dynamic Programming
Longest Palindromic Subsequence
More
Dynamic Programming
Longest Palindromic Substring
More
Dynamic Programming
Longest Valid Parentheses
More
Dynamic Programming
Matrix Chain Multiplication
More
Dynamic Programming
Matrix Chain Recursive Top Down Memoisation
More
Dynamic Programming
Minimum Sum Partition
More
Dynamic Programming
New Man Shanks Prime
More
Dynamic Programming
Optimal Job Scheduling
More
Dynamic Programming
Palindromic Partitioning
More
Dynamic Programming
Partition Problem
More
Dynamic Programming
Regex Matching
More
Dynamic Programming
Rod Cutting
More
Dynamic Programming
Shortest Common Supersequence Length
More
Dynamic Programming
Subset Count
More
Dynamic Programming
Sum of Subset
More
Dynamic Programming
Unique Paths
More
Dynamic Programming
Wildcard Matching
More
Dynamic Programming
Wine Problem
More
Dynamic Programming
Coin Change
+6
More
Dynamic Programming
Factorial
+12
More
Dynamic Programming
Fibonacci Numbers
+11
More
Dynamic Programming
Longest Palindromic Substring
More
Fractals
Fractals
Koch Snowflake
More
Fractals
Mandelbrot
More
Graphs
Graphs
A Star
More
Graphs
Bellman Ford
+3
More
Graphs
Kosaraju
More
Graphs
Kruskal
More
Graphs
Prim MST
More
Graphs
Minimum Path Sum
More
Graphs
Dijkstra
+3
More
Graphs
Page Rank
More
Graphs
Breadth First Search
+3
More
Graphs
Depth First Search
+4
More
Greedy Algorithms
Greedy Algorithms
Job Sequencing
More
Greedy Methods
Greedy Methods
Fractional Knapsack
More
Hashing
Hashing
Luhn
More
Io
Io
Buffered Reader
More
Math
Math
/
Numerical Analysis
Intersection
More
Math
Binary Exponentiation
More
Math
/
Special Numbers
Catalan Number
More
Math
ADT Fraction
More
Math
Absolute Max
More
Math
Absolute Min
More
Math
Absolute Value
More
Math
Aliquot Sum
+4
More
Math
Amicable Number
More
Math
Area
More
Math
/
Special Numbers
Armstrong Number
+8
More
Math
/
Special Numbers
Automorphic Number
More
Math
Average
More
Math
Binary Pow
More
Math
Binomial Coefficient
+1
More
Math
Ceil
More
Math
Circular Convolution FFT
More
Math
Collatz Conjecture
More
Math
Combinations
More
Math
Convolution
More
Math
Convolution FFT
More
Math
Determinant Of Matrix
More
Math
Digital Root
More
Math
Distance Formula
More
Math
Dudeney Number
More
Math
Euler Method
More
Math
FFT
More
Math
FFT Bluestein
More
Math
Factorial Recursion
More
Math
Fast Inverse Sqrt
More
Math
Fibonacci Java Streams
More
Math
Fibonacci Loop
More
Math
Fibonacci Number Check
More
Math
Fibonacci Number Golden Ration
More
Math
Find Kth Number
More
Math
Find Max
More
Math
Find Max Recursion
More
Math
Find Min
+1
More
Math
Find Min Recursion
More
Math
Floor
More
Math
Frizzy Number
More
Math
GCD
More
Math
GCD Recursion
More
Math
Gaussian
More
Math
Generic Root
More
Math
Harshad Number
More
Math
Herons Formula
More
Math
Josephus Problem
More
Math
Juggler Sequence
More
Math
Kaprekar Numbers
More
Math
Keith Number
More
Math
/
Special Numbers
Krishnamurthy Number
More
Math
Least Common Multiple
More
Math
Leonardo Number
More
Math
Linear Diophantine Equations Solver
More
Math
Liouville Lambda Function
More
Math
Long Division
More
Math
Lucas Series
More
Math
Magic Square
More
Math
Matrix Rank
More
Math
Matrix Util
More
Math
Max Value
More
Math
Means
More
Math
Median
More
Math
Miller Rabin Primality Check
More
Math
Min Value
More
Math
Mobius Function
More
Math
Mode
More
Math
Non Repeating Element
More
Math
/
Special Numbers
Ugly Numbers
More
Math
Number of Digits
More
Math
Palindrome Number
More
Math
Parse Integer
More
Math
Perfect Cube
More
Math
Perfect Number
+5
More
Math
Perfect Square
+3
More
Math
Perimeter
More
Math
Pi Nilakantha
More
Math
Pollard Rho
More
Math
Pow
More
Math
Power Of Two Or Not
More
Math
Power Using Recursion
More
Math
Prime Factorization
More
Math
/
Special Numbers
Pronic Number
More
Math
Pythagorean Triple
More
Math
Reverse Number
More
Math
Roman Numeral Util
More
Math
Second Min Max
More
Math
Simpson Integration
More
Math
Square Free Integer
More
Math
Square Root With Babylonian Method
More
Math
Square Root With Newton Raphson Method
More
Math
Standard Deviation
More
Math
Standard Score
More
Math
Strobogrammatic Number
More
Math
Sum of Arithmetic Series
More
Math
Sum of Digits
+1
More
Math
Sum Without Arithmetic Operators
More
Math
Trinomial Triangle
More
Math
Twin Prime
More
Math
Vampire Number
More
Math
Vector Cross Product
More
Math
Volume
More
Math
Sieve of Eratosthenes
+4
More
Matrix
Matrix
Pascal Triangle
More
Matrix
Inverse of Matrix
More
Networking Flow
Networking Flow
Ford Fulkerson
More
Operations on Datastructures
Operations on Datastructures
Array Left Rotation
More
Others
Others
Lfu Cache
More
Others
Lru Cache
More
Others
Graham Scan
More
Others
Activity Selection
More
Others
Color Contrast Ratio
More
Others
Map Reduce
More
Others
Median Of Matrix
More
Others
Median Of Running Array
More
Others
Median Of Running Array Byte
More
Others
Median Of Running Array Double
More
Others
Median Of Running Array Float
More
Others
Median Of Running Array Integer
More
Others
Median Of Running Array Long
More
Others
Mirror Of Matrix
More
Others
Palindrome Prime
More
Others
Palindrome Singly Linked List
More
Others
Range In Sorted Array
More
Others
Sort 012 D
More
Others
Sparcity
More
Others
Three Sum Problem
More
Others
Two Sum Problem
More
Others
Word Boggle
More
Others
Matrix Transpose
More
Others
BFPRT
More
Others
Bankers Algorithm
More
Others
Brian Kernighan Algorithm
More
Others
CRC 16
More
Others
CRC 32
More
Others
CRC Algorithm
More
Others
Conway
More
Others
Count Char
More
Others
Count Words
More
Others
Damm
More
Others
Eulers Function
More
Others
Fibbonaci Series
More
Others
Floyd Triangle
More
Others
Guass Legendre
More
Others
Happy Numbers Seq
More
Others
Implementing Auto Completing Features Using Trie
More
Others
Insert Delete In Array
More
Others
KMP
More
Others
Krishnamurthy
More
Others
Line Sweep
More
Others
Linear Congruential Generator
More
Others
Lowest Base Palindrome
More
Others
Maximum Sum Of Distinct Subarrays With Length K
More
Others
Memory Management Algorithms
More
Others
Mini Max Algorithm
More
Others
Password Gen
More
Others
Perlin Noise
More
Others
Print A Matrix In Spiral Order
More
Others
Remove Duplicate From String
More
Others
Return Subsequence
More
Others
Reverse Stack Using Recursion
More
Others
Root Precision
More
Others
Rotate Matrice By 90 Degree
More
Others
Skyline Problem
More
Others
String Match Finite Automata
More
Others
Top K Words
More
Others
Tower of Hanoi
+1
More
Others
Two Pointers
More
Others
Verhoeff
More
Others
Count Set Bits
More
Recursive
Recursive
Flood Fill
More
Scheduling
Scheduling
Preemptive Priority Scheduling
More
Scheduling
RR Scheduling
More
Scheduling
SJF Scheduling
More
Searches
Searches
Binary Search
+15
More
Searches
Binary Search 2d Array
More
Searches
Exponental Search
More
Searches
Fibonacci Search
+4
More
Searches
How Many Times Rotated
More
Searches
Interpolation Search
+6
More
Searches
Iterative Binary Search
More
Searches
Iterative Ternary Search
More
Searches
Jump Search
+8
More
Searches
KMP Search
More
Searches
Linear Search
+14
More
Searches
Linear Search Thread
More
Searches
Lower Bound
More
Searches
Monte Carlo Tree Search
More
Searches
Order Agnostic Binary Search
More
Searches
Perfect Binary Search
More
Searches
Quick Select
More
Searches
Rabin Karp Algorithm
More
Searches
Recursive Binary Search
More
Searches
Row Column Wise Sorted 2d Array Binary Search
More
Searches
Saddleback Search
More
Searches
Search In A Row And Col Wise Sorted Matrix
More
Searches
Square Root Binary Search
More
Searches
Ternary Search
+5
More
Searches
Union Find
+1
More
Searches
Upper Bound
More
Searches
Sort Order Agnostic Binary Search
More
Sorts
Sorts
Bead Sort
+2
More
Sorts
Binary Insertion Sort
+4
More
Sorts
Bitonic Sort
More
Sorts
Bogo Sort
+7
More
Sorts
Bubble Sort
+19
More
Sorts
Bubble Sort Recursion
More
Sorts
Bucket Sort
+5
More
Sorts
Circle Sort
More
Sorts
Cocktail Shaker Sort
More
Sorts
Comb Sort
+8
More
Sorts
Counting Sort
+8
More
Sorts
Cycle Sort
+5
More
Sorts
Dnf Sort
More
Sorts
Dual Pivot Quick Sort
More
Sorts
Dutch National Flag Sort
More
Sorts
Gnome Sort
+7
More
Sorts
Heap Sort
+15
More
Sorts
Insertion Sort
+18
More
Sorts
Introspective Sort
More
Sorts
Link List Sort
More
Sorts
Merge Sort No Extra Space
More
Sorts
Merge Sort Recursive
More
Sorts
Odd Even Sort
+1
More
Sorts
Pancake Sort
+6
More
Sorts
Pigeonhole Sort
+2
More
Sorts
Quick Sort
+19
More
Sorts
Radix Sort
+9
More
Sorts
Selection Sort
+14
More
Sorts
Shell Sort
+9
More
Sorts
Simple Sort
More
Sorts
Slowsort
More
Sorts
Sort Algorithm
More
Sorts
Sort Utils
More
Sorts
Sort Utils Random Generator
More
Sorts
Stooge Sort
+1
More
Sorts
Strand Sort
More
Sorts
Swap Sort
More
Sorts
Tim Sort
+2
More
Sorts
Topological Sort
+1
More
Sorts
Tree Sort
More
Sorts
Wiggle Sort
More
Stacks
Stacks
Balanced Brackets
More
Stacks
Calculate Max Of Min
More
Stacks
Decimal To Any Using Stack
More
Stacks
Duplicate Brackets
More
Stacks
Infix To Postfix
More
Stacks
Largest Rectangle
More
Stacks
Maximum Minimum Window
More
Stacks
Next Grater Element
More
Stacks
Next Smaller Element
More
Stacks
Postfix To Infix
More
Stacks
Stack Postfix Notation
More
Strings
Strings
Levenshtein Distance
+2
More
Strings
Boyer Moore
More
Strings
Rabin Karp
+2
More
Strings
Hamming Distance
+4
More
Strings
Aho Corasick
More
Strings
Alphabetical
More
Strings
Anagram
More
Strings
Characters Same
More
Strings
Check Anagram
+2
More
Strings
Check Vowels
More
Strings
Hamming Distance
+4
More
Strings
Horspool Search
More
Strings
Isomorphic
More
Strings
Letter Combinations Of Phone Number
More
Strings
Lower
More
Strings
My Atoi
More
Strings
Palindrome
+2
More
Strings
Pangram
More
Strings
Permute String
More
Strings
Reverse String
More
Strings
Reverse String Recursive
More
Strings
Reverse Words In String
More
Strings
String Compression
More
Strings
Upper
More
Strings
Valid Parentheses
More
Strings
Word Ladder
More
Strings
Longest Non Repeative Substring
More
Strings
Zig Zag Pattern
More
© The Algorithms 2023
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
X
Source code
Contact