The Algorithms
Search any algorithm
About
Donate
Data Structures
Data Structures
/
Stacks
Stack with Doubly Linked List
More
Data Structures
/
Stacks
Balanced Parentheses
More
Data Structures
/
Stacks
Stack with Singly Linked List
+2
More
Data Structures
/
Stacks
Stock Span Problem
More
Data Structures
/
Stacks
Infix to Prefix Conversion
More
Data Structures
/
Stacks
Dijkstras Two Stack Algorithm
More
Data Structures
Stack
More
Data Structures
/
Stacks
Postfix Evaluation
More
Data Structures
/
Stacks
Prefix Evaluation
More
Data Structures
/
Stacks
Evaluate Postfix Notations
More
Data Structures
/
Stacks
Infix to Postfix Conversion
More
Data Structures
/
Stacks
Next Greater Element
More
Data Structures
/
Hashing
Hash Table with Linked List
More
Data Structures
/
Hashing
Double Hash
More
Data Structures
/
Hashing
/
Number Theory
Prime Numbers
More
Data Structures
/
Hashing
Quadratic Probing
More
Data Structures
/
Hashing
Hash Table
More
Data Structures
Trie
More
Data Structures
/
Linked List
Singly Linked List
+1
More
Data Structures
/
Linked List
Middle Element of Linked List
More
Data Structures
/
Linked List
Print Reverse
More
Data Structures
/
Linked List
Is Palindrome
More
Data Structures
/
Linked List
Skip List
More
Data Structures
/
Linked List
Circular Linked List
More
Data Structures
/
Linked List
Doubly Linked List
+2
More
Data Structures
/
Linked List
Has Loop
More
Data Structures
/
Linked List
From Sequence
More
Data Structures
/
Linked List
Deque Doubly
More
Data Structures
/
Linked List
Swap Nodes
More
Data Structures
/
Linked List
Doubly Linked List Two
More
Data Structures
/
Linked List
Merge Two Lists
More
Data Structures
/
Queues
Priority Queue Using List
More
Data Structures
/
Queues
Circular Queue
More
Data Structures
/
Queues
Queue on List
More
Data Structures
/
Queues
Double Ended Queue
More
Data Structures
/
Queues
Queue on Pseudo Stack
More
Data Structures
/
Queues
Linked Queue
More
Data Structures
/
Queues
Circular Queue Linked List
More
Data Structures
/
Heap
Randomized Heap
More
Data Structures
/
Heap
Binomial Heap
More
Data Structures
/
Heap
Skew Heap
More
Data Structures
/
Heap
Max Heap
More
Data Structures
/
Heap
Min Heap
More
Data Structures
Heap
More
Data Structures
/
Heap
Heap Generic
More
Data Structures
/
Disjoint Set
Alternate Disjoint Set
More
Data Structures
Disjoint Set
More
Data Structures
/
Binary Tree
Lowest Common Ancestor
More
Data Structures
/
Binary Tree
Fenwick Tree
More
Data Structures
/
Binary Tree
Basic Binary Tree
More
Data Structures
/
Binary Tree
Number of Possible Binary Trees
More
Data Structures
/
Binary Tree
Non Recursive Segment Tree
More
Data Structures
/
Binary Tree
Wavelet Tree
More
Data Structures
/
Binary Tree
Binary Search Tree
+1
More
Data Structures
/
Binary Tree
Segment Tree
More
Data Structures
/
Binary Tree
Binary Search Tree Recursive
More
Data Structures
/
Binary Tree
AVL Tree
+1
More
Data Structures
/
Binary Tree
Treap
More
Data Structures
/
Binary Tree
Binary Tree Mirror
More
Data Structures
/
Binary Tree
Binary Tree Traversals
More
Data Structures
/
Binary Tree
Red Black Tree
More
Data Structures
/
Binary Tree
Lazy Segment Tree
More
Data Structures
/
Binary Tree
Segment Tree Other
More
Data Structures
/
Binary Tree
Merge Two Binary Trees
More
Data Structures
/
Queues
Queue Using 2 Stacks
More
Data Structures
Queue
More
Data Structures
/
Stacks
Stack ES 6
More
Data Structures
/
Vectors
Vector 2
More
Data Structures
/
Linked List
Single Circular Linked List
More
Data Structures
/
Linked List
Rotate List Right
More
Data Structures
/
Linked List
Add Two Numbers
More
Data Structures
/
Linked List
Cycle Detection
More
Data Structures
/
Heap
Min Priority Queue
More
Data Structures
/
Array
Local Maximom Point
More
Data Structures
/
Array
Number Of Local Maximum Points
More
Data Structures
/
Graphs
Graph 2
More
Data Structures
Graph
More
Data Structures
Morrisinorder
More
Data Structures
Dsu Path Compression
More
Data Structures
Rb Tree
More
Data Structures
Circular Queue Using Linked List
More
Data Structures
Linkedlist Implentation Usingarray
More
Data Structures
Linked List
More
Data Structures
Queue Using Linked List
More
Data Structures
Queue Using Two Stacks
More
Data Structures
List Array
More
Data Structures
Cll
More
Data Structures
/
CLL
Main Cll
More
Data Structures
Trie Modern
More
Data Structures
Stack Using Queue
More
Data Structures
Trie Tree
More
Data Structures
Sparse Table
More
Data Structures
Tree 234
More
Data Structures
Queue Using Array
More
Data Structures
Binaryheap
More
Data Structures
Reverse a Linked List
More
Data Structures
Tree
More
Data Structures
Dsu Union Rank
More
Data Structures
Queue Using Array 2
More
Data Structures
Stack Using Array
More
Data Structures
Trie Using Hashmap
More
Data Structures
Binary Search Tree 2
More
Data Structures
/
Tree
Level Order Traversal
More
Data Structures
/
Tree
Level Order Traversal Queue
More
Data Structures
/
Tree
Red Black BST
More
Data Structures
/
Tree
Check If Binary Tree Balanced
More
Data Structures
/
Tree
Print Top Viewof Tree
More
Data Structures
/
Tree
Binary Tree
More
Data Structures
/
Tree
BST Iterative
More
Data Structures
/
Tree
Vertical Order Traversal
More
Data Structures
/
Tree
BST Recursive
More
Data Structures
/
Tree
Create BST From Sorted Array
More
Data Structures
/
Tree
Tree Traversal
More
Data Structures
/
Tree
Generic Tree
More
Data Structures
/
Tree
AVL Simple
More
Data Structures
/
Tree
Trie Imp
More
Data Structures
/
Tree
Ceil In Binary Search Tree
More
Data Structures
/
Tree
Nearest Right Key
More
Data Structures
/
Tree
Create Binary Tree From Inorder Preorder
More
Data Structures
/
Tree
Valid BST Or Not
More
Data Structures
/
Tree
Tree Random Node
More
Data Structures
/
Tree
LCA
More
Data Structures
/
Tree
BST Recursive Generic
More
Data Structures
/
Bags
Bag
More
Data Structures
/
Stacks
Stack Array
More
Data Structures
/
Stacks
Next Smaller Element
More
Data Structures
/
Stacks
Decimal To Any Using Stack
More
Data Structures
/
Stacks
Maximum Minimum Window
More
Data Structures
/
Stacks
Balanced Brackets
More
Data Structures
/
Stacks
Reverse Stack
More
Data Structures
/
Stacks
Node Stack
More
Data Structures
/
Stacks
Infix To Postfix
More
Data Structures
/
Stacks
Duplicate Brackets
More
Data Structures
/
Stacks
Next Grater Element
More
Data Structures
/
Stacks
Stack Array List
More
Data Structures
Dynamic Array
More
Data Structures
/
Cache
MRU Cache
More
Data Structures
/
Buffers
Circular Buffer
More
Data Structures
/
List
Remove Duplicate Nodes
More
Data Structures
/
List
Merge Sorted Array List
More
Data Structures
/
List
Merge Sorted Singly Linked List
More
Data Structures
/
List
Search Singly Linked List Recursion
More
Data Structures
/
List
Cursor Linked List
More
Data Structures
/
List
Count Singly Linked List Recursion
More
Data Structures
/
List
Merge K Sorted Linkedlist
More
Data Structures
/
List
Random Node
More
Data Structures
/
List
Circle Linked List
More
Data Structures
/
List
Create And Detect Loop
More
Data Structures
Disjoint Sets
More
Data Structures
/
Heaps
Heap Element
More
Data Structures
/
Heaps
Empty Heap Exception
More
Data Structures
Queues
More
Data Structures
/
Queues
Generic Array List Queue
More
Data Structures
/
Queues
Deques
More
Data Structures
/
Queues
Priority Queues
More
Data Structures
Graphs
More
Data Structures
/
Graphs
Connected Component
More
Data Structures
/
Graphs
Bipartite Grapf DFS
More
Data Structures
/
Graphs
DIJSKSTRAS ALGORITHM
More
Data Structures
/
Graphs
Cycles
More
Data Structures
/
Graphs
Matrix Graphs
More
Data Structures
/
Graphs
Kahns Algorithm
More
Data Structures
/
Hash Map
/
Hashing
Hash Map
More
Data Structures
/
Hash Map
/
Hashing
Main Linear Probing
More
Data Structures
/
Hash Map
/
Hashing
Hash Map Linear Probing
More
Data Structures
/
Hash Map
/
Hashing
Main
More
Data Structures
/
Binary Tree
Create Node
More
Data Structures
/
Binary Tree
Recursive Traversals
More
Data Structures
/
Binary Tree
Threaded Binary Trees
More
Data Structures
/
Binary Tree
Words Alphabetical
More
Data Structures
/
Stacks
Parenthesis
More
Data Structures
/
Linked List
Middle Element in List
More
Data Structures
/
Linked List
Singly Link List Deletion
More
Data Structures
/
Linked List
Merge Linked Lists
More
Data Structures
/
Linked List
Ascending Priority Queue
More
Data Structures
/
Linked List
Queue Linked List
More
Data Structures
/
Array
Carray
More
Data Structures
List
More
Data Structures
Hash Set
More
Data Structures
/
Dictionary
Dict
More
Data Structures
/
Graphs
Euler
More
Data Structures
/
Graphs
Bfs Queue
More
Data Structures
/
Graphs
Dfs Recursive
More
Data Structures
/
Graphs
Bfs
More
Data Structures
/
Graphs
Transitive Closure
More
Data Structures
/
Graphs
Dfs
More
Data Structures
/
Graphs
Hamiltonian
More
Data Structures
B Tree
More
Data Structures
/
Queues
Priority Queue
More
Data Structures
/
Queues
List Queue
More
Data Structures
Quad Tree
More
Data Structures
/
Stacks
Array Stack
More
Data Structures
/
Linked List
Cycle in Linked List
More
Data Structures
/
Heap
/
Binary Heap
Min Heap Two
More
Data Structures
/
Hash Map
Hashing
More
Data Structures
/
Binary Tree
Postorder Traversal
More
Data Structures
/
Binary Tree
Invert
More
Data Structures
/
Binary Tree
Preorder Traversal
More
Data Structures
/
Binary Tree
Inorder Traversal
More
Data Structures
/
Array
Sorted Arrays Intersection
More
Data Structures
/
Array
Richest Customer Wealth
More
Data Structures
/
Array
3sum
More
Data Structures
/
Array
Maximum Product Subarray
More
Data Structures
/
Array
Two Sum Ii
More
Data Structures
/
Array
Single Number
More
Data Structures
/
Array
Add Digits
More
Data Structures
/
Array
Find All Duplicates in an Array
More
Data Structures
/
Array
Find the Highest Altitude
More
Data Structures
/
Array
Sort Squares of an Array
More
Data Structures
/
Array
Shuffle Array
More
Data Structures
/
Array
Get Products of All Other Elements
More
Data Structures
/
Array
Shortest Word Distance
More
Data Structures
/
Array
/
Strings
Almost Palindrome Checker
More
Data Structures
/
Array
/
Strings
Anagram Checker
More
Data Structures
/
Array
/
Strings
Remove Vowels
More
Data Structures
/
Array
/
Strings
Jewels and Stones
More
Data Structures
/
Array
Max 69 Number
More
Data Structures
/
Array
Good Pairs
More
Data Structures
/
Array
Remove Elements
More
Data Structures
/
Hash Table
Uncommon Words
More
Data Structures
/
Hash Table
Common Characters
More
Data Structures
/
Hash Table
Isomorphic Strings
More
Data Structures
/
Hash Table
Arrays Intersection
More
Data Structures
/
Binary Tree
Basic Binary Search Tree
More
Data Structures
/
Binary Tree
Splay
More
Data Structures
Table List
More
Data Structures
Median Heap
More
Data Structures
Table Heap
More
Data Structures
Table Stack
More
© The Algorithms 2021
What is an algorithm?
About us
Programming Languages
Contribute
Donate
Contact
GitHub
Gitter
Twitter
Source code
Analytics