The Algorithms logo
The Algorithms
AboutDonate
Backtracking

All Combinations Of Size K

Generate Permutations

Knight Tour

M Coloring Problem

Rat In A Maze

Sudoku Solver

Generate Parentheses

Sudoku Solver

Bit Manipulation

Binary Count Setbits

Generate Sub Sets

Is Power of Two

Is Powerof Four

Next Power Of Two

Unique Element In An Array

Cache

Memoize

Cellular Automata

Conways Game of Life

Ciphers

Affine Cipher

Caesar Cipher

Key Finder

Keyword Shifted Alphabet

Morse Code

Vigenere Cipher

XOR Cipher

Conversions

Arbitrary Base

Array Buffer To Base 64

Base 64 To Array Buffer

Binary to Decimal

Binary To Hex

Date Day Difference

Date To Day

Decimal to Binary

Decimal To Hex

Decimal to Octal

Decimal To Roman

Hex To Binary

Hex To Decimal

Hex To RGB

Length Conversion

Liters To Imperial Gallons

Liters To US Gallons

Lower Case Conversion

Meter To Feet Conversion

Oct To Decimal

Ounces To Kilograms

RGB To Hex

Railway Time Conversion

Rgb Hsl Conversion

Rgb Hsv Conversion

Roman To Decimal

Temperature Conversion

Title Case Conversion

Upper Case Conversion

Data Structures
Divide and Conquer
Dynamic Programming

Fast Fibonacci Number

Fibonacci Numbers

+12

More

Find Month Calendar

Longest Common Subsequence

Longest Increasing Subsequence

Longest Palindromic Subsequence

Longest Valid Parentheses

Max Non Adjacent Sum

Max Product Of Three

Minimum Cost Path

Number Of Subset Equal To Given Sum

Longest Substring Without Repeating Characters

Max Consecutive Ones III

Trapping Rain Water

Tribonacci Number

Zero One Knapsack

Floyd Warshall

Fibonacci Numbers

+12

More

Palindrome Partitioning

Fractals

Mandelbrot

Koch Snowflake

Koch Snowflake

Geometry

Convex Hull Graham

Graphs

Bellman Ford

Binary Lifting

Breadth First Search

Breadth First Shortest Path

Connected Components

Density

Depth First Search Iterative

Depth First Search Recursive

Dijkstra

Dijkstra Smallest Path

Kosaraju

Kruskal MST

LCA Binary Lifting

Node Neighbors

Number Of Islands

Prim MST

Depth First Search

Hashing
Math

Sieve of Eratosthenes

Aliquot Sum

Arithmetic Geometric Mean

Armstrong Number

Automorphic Number

Average Mean

Average Median

Binary Convert

Binary Exponentiation Iterative

Binary Exponentiation Recursive

Binomial Coefficient

Bisection Method

Check Kishnamurthy Number

Circular Arc

Co Prime Check

Collatz Sequence

Coordinate

Count Numbers Divisible

Decimal Expansion

Decimal Isolate

Degrees to Radians

Determinant

Euclidean Distance

Euler Method

Euler's Totient

Euler's Totient

Exponential Function

Extended Euclidean GCD

Factors

Farey Approximation

Figurate Number

Find Hcf

Find Max Recursion

Find Min

Find Min Iterator

Friendly Numbers

Get Euclid GCD

Grid Get

Hexagonal Number

Int To Base

Is Divisible

Is Odd

Is Square Free

Juggler Sequence

Leap Year

Linear Sieve

Liouville Function

Lucas Series

Matrix Exponentiation Recursive

Matrix Multiplication

Mean Absolute Deviation

Mean Square Error

Midpoint Integration

Mobius Function

Modular Arithmetic

Modular Binary Exponentiation Recursive

Number of Digits

Parity Outlier

Perfect Cube

Perfect Number

Perfect Square

Permutation And Combination

Pi Approximation Monte Carlo

Polynomial

Pow Logarithmic

Prime Factors

Quadratic Roots

Radians to Degrees

Reverse Number

Reverse Polish Notation

Row Echelon

Shors Algorithm

Sieve of Eratosthenes

Sieve Of Eratosthenes Int Array

Signum

Simpson Integration

Softmax

Square Root Logarithmic

Sum of Digits

Sum of Geometric Progression

Two Sum

Volume

While Loop Factorial

Zellers Congruence Algorithm

Is Palindrome Integer Number

Matrix

Pascal Triangle

Navigation
Others

Lfu Cache

Lru Cache

Tower of Hanoi

Recursive

Binary Equivalent

Fibonacci Number Recursive

Flood Fill

Letter Combination

Partition

Subsequence Recursive

Searches

Quick Select

Binary Search

+15

More

Binary Search

+15

More

Exponential Search

Fibonacci Search

Interpolation Search

Jump Search

Linear Search

+14

More

Minesweeper

Quick Select Search

Sliding Window

String Search

Ternary Search

Union Find

Sorts

Alpha Numerical Sort

Bead Sort

Binary Insertion Sort

Bogo Sort

Bubble Sort

+19

More

Bucket Sort

Cocktail Shaker Sort

Comb Sort

Counting Sort

Cycle Sort

Dutch National Flag Sort

Find Second Largest Element

Fisher Yates Shuffle

Flash Sort

Gnome Sort

Heap Sort

+15

More

Heap Sort V 2

Insertion Sort

+18

More

Intro Sort

Odd Even Sort

Pancake Sort

Pigeonhole Sort

Quick Sort

+19

More

Quick Sort Recursive

Radix Sort

Selection Sort

+14

More

Shell Sort

Simplified Wiggle Sort

Stooge Sort

Swap Sort

Tim Sort

Topological Sort

Strings

Levenshtein Distance

Palindrome

Palindrome

Rabin Karp

Alpha Numeric Palindrome

Alternative String Arrange

Boyer Moore

Check Anagram

Check Camel Case

Check Exceeding

Check Flat Case

Check Kebab Case

Check Palindrome

Check Pangram

Check Pascal Case

Check Rearrange Palindrome

Check Snake Case

Check Word Occurrence

Count Letters

Count Substrings

Count Vowels

Create Permutations

Dice Coefficient

First Unique Character

Format Phone Number

Generate GUID

Hamming Distance

KMP Pattern Searching

Lengthof Longest Substring Without Repetition

Levenshtein Distance

Max Character

Max Word

Pattern Matching

Percentage Of Letters

Permutate String

Reverse String

Reverse Words

Scramble Strings

Validate Credit Card

Validate Email

Z Function

Timing-Functions
Tree

Breadth First Tree Traversal