Learn Algorithms & Data Structures

Open source resource for learning algorithms and their implementation in any programming language

About The Algorithms

30+

Programming Languages

250k+

Total Stars

100k+

Members & Contributors

1000+

Algorithms

The Algorithms is the largest open-source algorithm library on GitHub, backed by an active community of developers worldwide.

Clear, well-documented implementations in multiple programming languages

Beginner-friendly explanations and step-by-step guides

Active community support and code reviews

Educational resources for computer science students

Regular updates and maintenance by expert developers

Cross-platform compatibility and optimized implementations

Programming Languages

Python

199k+ Stars

Explore

Java

61k+ Stars

Explore

JavaScript

28k+ Stars

Explore

Go

13k+ Stars

Explore

Rust

12k+ Stars

Explore

C++

25k+ Stars

Explore

C

15k+ Stars

Explore

Swift

4k+ Stars

Explore

PHP

3k+ Stars

Explore

R

2k+ Stars

Explore

Scala

1k+ Stars

Explore

Julia

1k+ Stars

Explore

Popular Algorithm Categories

Sorting Algorithms

  • Bubble Sort
  • Quick Sort
  • Merge Sort
  • Heap Sort
  • Insertion Sort
  • Selection Sort
  • Radix Sort
  • Shell Sort
Learn More →

Searching Algorithms

  • Binary Search
  • Linear Search
  • Jump Search
  • Interpolation Search
  • Exponential Search
  • Fibonacci Search
  • Ternary Search
Learn More →

Graph Algorithms

  • Dijkstra's Algorithm
  • Breadth First Search
  • Depth First Search
  • Bellman Ford
  • Floyd Warshall
  • Kruskal's Algorithm
  • Prim's Algorithm
  • A* Pathfinding
Learn More →

Data Structures

  • Binary Trees
  • Linked Lists
  • Hash Tables
  • Stacks & Queues
  • AVL Trees
  • Red-Black Trees
  • Heaps
  • Tries
Learn More →

How to Contribute

Fork & Clone

Start by forking the repository of your chosen programming language and clone it locally.

Implement

Add your algorithm implementation following our coding guidelines and documentation standards.

Test

Ensure your code works correctly by adding appropriate test cases.

Submit

Create a pull request with your changes and wait for review from our maintainers.

Latest from Twitter

Join Our Community

6k+

Discord Members

1000+

Contributors

100K+

Monthly Views

Our Team

Meet the amazing people behind The Algorithms

Christian Clauss

cclauss

AkarshSatija

Akarsh Satija

xuri

xuri

anirudhmurali

Anirudh Murali

Vitor Oliveira

Vitor Oliveira

wesllhey

wesllhey

tapaswenipathak

Tapasweni Pathak

alexpantyukhin

Alex Pantyukhin

kassane

kassane

himanshu-dixit

Himanshu Dixit

andreicioban

Andrei Cioban

Erfaniaa

Erfan Alimohammadi

AnshulMalik

Anshul Malik

saurabhjn76

Saurabh Jain

AnupKumarPanwar

Anup Kumar Panwar

cozek

cozek

mrvnmchm

mrvnmchm

harshildarji

Harshil Darji

dynamitechetan

Chetan Kaushik

DravitLochan

Dravit Lochan