The Algorithms logo
The Algorithms


GitHub 仓库

All Combinations Of Size K

Generate Permutations

Knight Tour

M Coloring Problem

N Queens

Rat In A Maze

Sudoku Solver

Generate Parentheses

Sudoku Solver


Binary Count Setbits

Generate Sub Sets

Gray Codes

Is Power of Two

Is Powerof Four

Next Power Of Two

Unique Element In An Array


Conways Game of Life


Affine Cipher

Caesar Cipher

Key Finder

Keyword Shifted Alphabet

Morse Code

Vigenere Cipher

XOR Cipher


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


Local Maximom Point

Number Of Local Maximum Points

Key Priority Queue

Min Priority Queue

Add Two Numbers

Cycle Detection

Cycle Detection II

Doubly Linked List

Merge Two Sorted Linked Lists

Reverse Singly Linked List

Singly Circular Linked List

Singly Linked List

Queue Using 2 Stacks

Evaluate Expression

Binary Search Tree

Is Palindrome




Sum of Subset


Catalan Numbers

Climbing Stairs

Coin Change

Edit Distance

Fast Fibonacci Number

Fibonacci Numbers

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

Max Consecutive Ones III

Permutationin String

Trapping Rain Water

Tribonacci Number

Unique Paths

Unique Paths 2

Zero One Knapsack

Floyd Warshall


Fibonacci Numbers


Palindrome Partitioning



Koch Snowflake

Koch Snowflake


Bellman Ford

Binary Lifting

Breadth First Search

Breadth First Shortest Path

Connected Components

Depth First Search Iterative

Depth First Search Recursive


Dijkstra Smallest Path


Kruskal MST

LCA Binary Lifting

Node Neighbors

Number Of Islands

Prim MST

Depth First Search


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


Count Numbers Divisible

Decimal Expansion

Decimal Isolate

Degrees to Radians


Euclidean Distance

Euler Method

Euler's Totient

Euler's Totient

Exponential Function

Extended Euclidean GCD

Farey Approximation

Figurate Number

Find Hcf

Find Max Recursion

Find Min

Find Min Iterator

Friendly Numbers

Get Euclid GCD

Grid Get

Int To Base

Is Divisible

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


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

Simpson Integration

Square Root Logarithmic

Sum of Digits

Sum of Geometric Progression

While Loop Factorial

Zellers Congruence Algorithm

Is Palindrome Integer Number


Pascal Triangle




Lfu Cache

Lru Cache

Tower of Hanoi


Binary Equivalent

Fibonacci Number Recursive

Flood Fill

Letter Combination


Subsequence Recursive


Quick Select

Binary Search

Binary Search

Exponential Search

Fibonacci Search

Interpolation Search

Jump Search

Linear Search


Quick Select Search

Sliding Window

String Search

Ternary Search

Union Find


Alpha Numerical Sort

Bead Sort

Binary Insertion Sort

Bogo Sort

Bubble Sort

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

Heap Sort V 2

Insertion Sort

Intro Sort

Odd Even Sort

Pancake Sort

Pigeonhole Sort

Quick Sort

Quick Sort Recursive

Radix Sort

Selection Sort

Shell Sort

Simplified Wiggle Sort

Stooge Sort

Swap Sort

Tim Sort

Topological Sort


Levenshtein Distance



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

Pattern Matching

Percentage Of Letters

Permutate String

Reverse String

Reverse Words

Scramble Strings

Validate Credit Card

Validate Email

Z Function


Get Month Days

Interval Timer

Breadth First Tree Traversal