The Algorithms
Search any algorithm
About
Donate
Ruby
GitHub repository
Backtracking
Backtracking
Generate Paranthesis
More
Backtracking
Sudoku Solver
+1
More
Bit Manipulation
Bit Manipulation
Binary and Operator
More
Bit Manipulation
Binary Count Setbits
More
Bit Manipulation
Binary Count Trailing Zeroes
More
Bit Manipulation
Binary or Operator
More
Bit Manipulation
Binary Xor Operator
More
Bit Manipulation
Single Bit Binary Operations
More
Ciphers
Ciphers
Caesar
More
Ciphers
Merkle Hellman Cryptosystem
More
Ciphers
RSA
More
Conversions
Conversions
Temperature Conversions
More
Conversions
Weight Conversions
More
Conversions
Binary to Decimal
+3
More
Conversions
Decimal to Binary
+4
More
Conversions
Roman To Integer
More
Data Structures
Data Structures
/
Array
3sum
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
Get Products of All Other Elements
More
Data Structures
/
Array
Good Pairs
More
Data Structures
/
Array
Max 69 Number
More
Data Structures
/
Array
Maximum Product Subarray
More
Data Structures
/
Stacks
Next Greater Element
More
Data Structures
/
Array
Remove Elements
More
Data Structures
/
Array
Richest Customer Wealth
More
Data Structures
/
Array
Shortest Word Distance
More
Data Structures
/
Array
Shuffle Array
More
Data Structures
/
Array
Single Number
More
Data Structures
/
Array
Sort Squares of an Array
More
Data Structures
/
Array
Sorted Arrays Intersection
More
Data Structures
/
Array
/
Strings
Almost Palindrome Checker
More
Data Structures
/
Array
/
Strings
Jewels and Stones
More
Data Structures
/
Array
/
Strings
Remove Vowels
More
Data Structures
/
Array
Two Sum Ii
More
Data Structures
/
Binary Tree
AVL Tree
+2
More
Data Structures
/
Binary Tree
Bst
More
Data Structures
/
Tree
Inorder Traversal
More
Data Structures
/
Binary Tree
Invert
More
Data Structures
/
Tree
Post Order Traversal
More
Data Structures
/
Tree
Pre Order Traversal
More
Data Structures
Disjoint Sets
More
Data Structures
/
Graphs
Bfs
More
Data Structures
/
Graphs
Unweighted Graph
More
Data Structures
/
Graphs
Weighted Graph
More
Data Structures
/
Hash Table
Arrays Intersection
More
Data Structures
/
Hash Table
Common Characters
More
Data Structures
/
Array
Find All Duplicates in an Array
More
Data Structures
/
Array
Good Pairs
More
Data Structures
/
Array
Richest Customer Wealth
More
Data Structures
/
Hash Table
Uncommon Words
More
Data Structures
/
Heap
Max Heap
More
Data Structures
/
Linked List
Circular Linked List
More
Data Structures
/
Linked List
Doubly Linked List
+4
More
Data Structures
/
Linked List
Singly Linked List
+3
More
Data Structures
/
Queues
Circular Queue
More
Data Structures
Queue
+1
More
Data Structures
Stack
+3
More
Data Structures
Trie
More
Data Structures
/
Array
Add Digits
More
Data Structures
/
Hashing
/
Number Theory
Prime
+8
More
Discrete Mathematics
Discrete Mathematics
Euclidean Gcd
More
Discrete Mathematics
Exteded Euclidean Algorithm
More
Divide and Conquer
Divide and Conquer
Mergesort
+19
More
Dynamic Programming
Dynamic Programming
Fizz Buzz
More
Dynamic Programming
Maximum Subarray
More
Dynamic Programming
Fizz Buzz
More
Dynamic Programming
Climbing Stairs
More
Dynamic Programming
Coin Change
+6
More
Dynamic Programming
Count Sorted Vowel Strings
More
Dynamic Programming
Edit Distance
+1
More
Dynamic Programming
Fibonacci Numbers
+11
More
Dynamic Programming
/
Sliding Window
House Robber
More
Dynamic Programming
Knapsack
+2
More
Dynamic Programming
Ones and Zeros
More
Dynamic Programming
Pascal Triangle Ii
More
Dynamic Programming
Count Sorted Vowel Strings
More
Dynamic Programming
Factorial
+12
More
Dynamic Programming
Fibonacci Numbers
+11
More
Dynamic Programming
Pascal Triangle Ii
More
Electronics
Electronics
Ohms Law
More
Graphs
Graphs
Depth First Search
+4
More
Graphs
Number Of Islands
More
Math
Math
Power of Two
More
Math
/
Numerical Analysis
Intersection
More
Math
Two Sum
More
Math
Two Sum
More
Math
LCM
+2
More
Math
3n Plus 1
More
Math
Abs
+5
More
Math
Abs Max
More
Math
Abs Min
More
Math
/
Matrix
Add
More
Math
Aliquot Sum
+4
More
Math
/
Special Numbers
Armstrong Number
+8
More
Math
Average Mean
More
Math
Average Median
More
Math
Ceil
More
Math
Factorial Non Recursive Non Iterative
More
Math
Find Max
More
Math
Find Min
+1
More
Math
Lucas Series
More
Math
Number of Digits
More
Math
Power of Two
More
Math
/
Numerical Analysis
Square Root
More
Math
Sum of Digits
+1
More
Others
Others
Fisher Yates
More
Others
Number of Days
More
Searches
Searches
Binary Search
+15
More
Searches
Double Linear Search
More
Searches
Fibonacci Search
+4
More
Searches
Jump Search
+8
More
Searches
Linear Search
+14
More
Searches
Recursive Double Linear Search
More
Searches
Recursive Linear Search
More
Searches
Ternary Search
+5
More
Sorts
Sorts
Topological Sort
+1
More
Sorts
Bead Sort
+2
More
Sorts
Binary Insertion Sort
+4
More
Sorts
Bogo Sort
+7
More
Sorts
Bubble Sort
+19
More
Sorts
Bucket Sort
+5
More
Sorts
Cocktail Sort
+2
More
Sorts
Comb Sort
+8
More
Sorts
Counting Sort
+8
More
Sorts
Gnome Sort
+7
More
Sorts
Heap Sort
+15
More
Sorts
Insertion Sort
+18
More
Sorts
Pancake Sort
+6
More
Sorts
Quick Sort
+19
More
Sorts
Radix Sort
+9
More
Sorts
Selection Sort
+14
More
Sorts
Shell Sort
+9
More
Sorts
Sort Color
More
Strings
Strings
Check Anagram
+2
More
Strings
Palindrome
+2
More
Strings
Check Anagram
+2
More
Strings
Isomorphic Strings
More
Strings
Boyer Moore Horspool Search
More
Strings
Max K Most Frequent Words
More
© The Algorithms 2023
What is an algorithm?
About us
Programming Languages
Contribute
Donate
GitHub
Gitter
X
Source code
Contact