The Algorithms logo
The Algorithms
AboutDonate
undefined

Minimizing Lateness

Audio Filters
Backtracking

All Paths From Source To Target

Array Combination

Combination

Knights Tour

Maze Recursion

Permutation

Word Search

Hamiltonian Cycle

Sudoku Solver

Bit Manipulation

Highest Set Bit

Index of Rightmost Set Bit

Non Repeating Number Finder

Numbers Different Signs

Single Bit Operations

Ciphers

AES Encryption

Affine Cipher

Blowfish

Columnar Transposition Cipher

Hill Cipher

Polybius

Product Cipher

Simple Sub Cipher

Simple Substitution Cipher

Vigenere

A 5 Cipher

A 5 Key Stream Generator

Base LFSR

Composite LFSR

Compression
Conversions

Any Base To Any Base

Any Base To Decimal

Binary to Decimal

Binary to Hexadecimal

Binary to Octal

Decimal To Any Base

Decimal to Binary

Decimal to Hexadecimal

Decimal to Octal

Hex To Oct

Hexa Decimal To Binary

Hexadecimal to Decimal

Integer To Roman

Octal to Binary

Octal to Decimal

Octal to Hexadecimal

Rgb Hsv Conversion

Roman To Integer

Turkish To Latin Conversion

CPU Scheduling Algorithms
Data Structures

Disjoint Set Union

Dynamic Array

Bipartite Grapf DFS

Connected Component

DIJSKSTRAS ALGORITHM

Tarjans Algorithm

Generic Hash Map Using Array

Generic Hash Map Using Array List

Hash Map Cuckoo Hashing

Linear Probing Hash Map

Empty Heap Exception

Min Priority Queue

Circle Linked List

Count Singly Linked List Recursion

Create And Detect Loop

Cursor Linked List

Doubly Linked List

Merge Sorted Array List

Merge Sorted Singly Linked List

Merge K Sorted Linkedlist

Quick Sort Linked List

Rotate Singly Linked Lists

Search Singly Linked List Recursion

Singly Linked List

Generic Array List Queue

Stack Array List

Stack with Singly Linked List

BST From Sorted Array

BST Recursive Generic

Ceil In Binary Search Tree

Check Binary Tree Is Valid BST

Check If Binary Tree Balanced

Check Tree Is Symmetric

Create Binary Tree From Inorder Preorder

Inorder Traversal

Level Order Traversal

Post Order Traversal

Pre Order Traversal

Print Top Viewof Tree

Same Trees Check

Tree Random Node

Vertical Order Traversal

Zigzag Traversal

Nearest Right Key

Queue Using Two Stacks

Devutils

Process Details

Large Tree Node

Simple Node

Simple Tree Node

Matrix Search Algorithm

Search Algorithm

Digital Image Processing
Divide and Conquer

Skyline Algorithm

Strassen Matrix Multiplication

Dynamic Programming

Floyd Warshall

Brute Force Knapsack

Count Friends Pairing

Fibonacci Numbers

+11

More

Kadane Algorithm

Knapsack Memoization

Longest Alternating Subsequence

Longest Common Subsequence

Longest Increasing Subsequence

Longest Palindromic Subsequence

Longest Palindromic Substring

Longest Valid Parentheses

Matrix Chain Multiplication

Matrix Chain Recursive Top Down Memoisation

Minimum Sum Partition

New Man Shanks Prime

Optimal Job Scheduling

Palindromic Partitioning

Partition Problem

Shortest Common Supersequence Length

Wildcard Matching

Fibonacci Numbers

+11

More

Longest Palindromic Substring

Fractals

Koch Snowflake

Mandelbrot

Graphs

Bellman Ford

Kosaraju

Kruskal

Prim MST

Minimum Path Sum

Dijkstra

Page Rank

Breadth First Search

Depth First Search

Greedy Algorithms

Job Sequencing

Greedy Methods

Fractional Knapsack

Hashing
Io

Buffered Reader

Math

Binary Exponentiation

ADT Fraction

Absolute Max

Absolute Min

Absolute Value

Aliquot Sum

Amicable Number

Armstrong Number

Automorphic Number

Average

Binary Pow

Binomial Coefficient

Circular Convolution FFT

Collatz Conjecture

Combinations

Convolution

Convolution FFT

Determinant Of Matrix

Digital Root

Distance Formula

Dudeney Number

Euler Method

FFT Bluestein

Factorial Recursion

Fast Inverse Sqrt

Fibonacci Java Streams

Fibonacci Loop

Fibonacci Number Check

Fibonacci Number Golden Ration

Find Kth Number

Find Max

Find Max Recursion

Find Min

Find Min Recursion

Frizzy Number

GCD Recursion

Gaussian

Generic Root

Harshad Number

Herons Formula

Josephus Problem

Juggler Sequence

Kaprekar Numbers

Keith Number

Krishnamurthy Number

Least Common Multiple

Leonardo Number

Linear Diophantine Equations Solver

Liouville Lambda Function

Long Division

Lucas Series

Magic Square

Matrix Rank

Matrix Util

Max Value

Median

Miller Rabin Primality Check

Min Value

Mobius Function

Non Repeating Element

Number of Digits

Palindrome Number

Parse Integer

Perfect Cube

Perfect Number

Perfect Square

Perimeter

Pi Nilakantha

Pollard Rho

Power Of Two Or Not

Power Using Recursion

Prime Factorization

Pythagorean Triple

Reverse Number

Roman Numeral Util

Second Min Max

Simpson Integration

Square Free Integer

Square Root With Babylonian Method

Square Root With Newton Raphson Method

Standard Deviation

Standard Score

Strobogrammatic Number

Sum of Arithmetic Series

Sum of Digits

Sum Without Arithmetic Operators

Trinomial Triangle

Twin Prime

Vampire Number

Vector Cross Product

Volume

Sieve of Eratosthenes

Matrix

Pascal Triangle

Inverse of Matrix

Networking Flow

Ford Fulkerson

Operations on Datastructures
Others

Lfu Cache

Lru Cache

Graham Scan

Activity Selection

Color Contrast Ratio

Map Reduce

Median Of Matrix

Median Of Running Array

Median Of Running Array Byte

Median Of Running Array Double

Median Of Running Array Float

Median Of Running Array Integer

Median Of Running Array Long

Mirror Of Matrix

Palindrome Prime

Palindrome Singly Linked List

Range In Sorted Array

Sort 012 D

Sparcity

Three Sum Problem

Two Sum Problem

Word Boggle

Matrix Transpose

Bankers Algorithm

Brian Kernighan Algorithm

CRC Algorithm

Count Char

Count Words

Eulers Function

Fibbonaci Series

Floyd Triangle

Guass Legendre

Happy Numbers Seq

Implementing Auto Completing Features Using Trie

Insert Delete In Array

Krishnamurthy

Line Sweep

Linear Congruential Generator

Lowest Base Palindrome

Maximum Sum Of Distinct Subarrays With Length K

Memory Management Algorithms

Mini Max Algorithm

Password Gen

Perlin Noise

Print A Matrix In Spiral Order

Remove Duplicate From String

Return Subsequence

Reverse Stack Using Recursion

Root Precision

Rotate Matrice By 90 Degree

Skyline Problem

String Match Finite Automata

Top K Words

Tower of Hanoi

Two Pointers

Verhoeff

Count Set Bits

Recursive

Flood Fill

Scheduling

Preemptive Priority Scheduling

RR Scheduling

SJF Scheduling

Searches

Binary Search

+15

More

Binary Search 2d Array

Exponental Search

Fibonacci Search

How Many Times Rotated

Interpolation Search

Iterative Binary Search

Iterative Ternary Search

Jump Search

KMP Search

Linear Search

+14

More

Linear Search Thread

Lower Bound

Monte Carlo Tree Search

Order Agnostic Binary Search

Perfect Binary Search

Quick Select

Rabin Karp Algorithm

Recursive Binary Search

Row Column Wise Sorted 2d Array Binary Search

Saddleback Search

Search In A Row And Col Wise Sorted Matrix

Square Root Binary Search

Ternary Search

Union Find

Upper Bound

Sort Order Agnostic Binary Search

Sorts

Bead Sort

Binary Insertion Sort

Bitonic Sort

Bogo Sort

Bubble Sort

+19

More

Bubble Sort Recursion

Bucket Sort

Circle Sort

Cocktail Shaker Sort

Comb Sort

Counting Sort

Cycle Sort

Dnf Sort

Dual Pivot Quick Sort

Dutch National Flag Sort

Gnome Sort

Heap Sort

+15

More

Insertion Sort

+18

More

Introspective Sort

Link List Sort

Merge Sort No Extra Space

Merge Sort Recursive

Odd Even Sort

Pancake Sort

Pigeonhole Sort

Quick Sort

+19

More

Radix Sort

Selection Sort

+14

More

Shell Sort

Simple Sort

Slowsort

Sort Algorithm

Sort Utils

Sort Utils Random Generator

Stooge Sort

Strand Sort

Swap Sort

Tim Sort

Topological Sort

Tree Sort

Wiggle Sort

Stacks

Balanced Brackets

Calculate Max Of Min

Decimal To Any Using Stack

Duplicate Brackets

Infix To Postfix

Largest Rectangle

Maximum Minimum Window

Next Grater Element

Next Smaller Element

Postfix To Infix

Stack Postfix Notation

Strings

Levenshtein Distance

Boyer Moore

Rabin Karp

Hamming Distance

Aho Corasick

Alphabetical

Characters Same

Check Anagram

Check Vowels

Hamming Distance

Horspool Search

Isomorphic

Letter Combinations Of Phone Number

Palindrome

Permute String

Reverse String

Reverse String Recursive

Reverse Words In String

String Compression

Valid Parentheses

Word Ladder

Longest Non Repeative Substring

Zig Zag Pattern