The Algorithms

Banner


We are a group of programmers helping each other build new things, whether it be writing complex encryption programs, or simple ciphers. Our goal is to work together to document and model beautiful, helpful and interesting algorithms using code.
We are an open-source community - anyone can contribute. We check each other's work, communicate and collaborate to solve problems. We strive to be welcoming, respectful, yet make sure that our code follows the latest programming guidelines.

Pinned Loading

  1. All Algorithms implemented in Python

    Python 218k 50.1k

  2. All Algorithms implemented in Java

    Java 65.1k 21k

  3. Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.

    C 21.8k 4.7k

  4. Algorithms and Data Structures implemented in Go for beginners, following best practices.

    Go 17.9k 2.8k

  5. Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

    C++ 33.9k 7.7k

  6. Algorithms and Data Structures implemented in TypeScript for beginners, following best practices.

    TypeScript 2.7k 526

Repositories

Showing 10 of 44 repositories

  • Java Public

    All Algorithms implemented in Java

    TheAlgorithms/Java’s past year of commit activity

  • Python Public

    All Algorithms implemented in Python

    TheAlgorithms/Python’s past year of commit activity

  • Rust Public

    All Algorithms implemented in Rust

    TheAlgorithms/Rust’s past year of commit activity

  • Dart Public

    All Algorithms implemented in Dart

    TheAlgorithms/Dart’s past year of commit activity

  • Nim Public

    Collection of various algorithms implemented in Nim for educational purposes.

    TheAlgorithms/Nim’s past year of commit activity

  • website Public

    The Algorithms website providing GitHub's largest open-source algorithm library.

    TheAlgorithms/website’s past year of commit activity

  • Mojo Public

    All algorithms implemented in Mojo. (The first open-sourced Mojo repository on GitHub)

    TheAlgorithms/Mojo’s past year of commit activity

    Mojo

    53

    MIT

    14 0 0

    Updated Feb 9, 2026

  • Fortran Public

    All Algorithms implemented in Fortran. Making Fortran Great Again!

    TheAlgorithms/Fortran’s past year of commit activity

    Fortran

    94

    MIT

    31 1 0

    Updated Feb 8, 2026

  • Zig Public

    Collection of Algorithms implemented in Zig.

    TheAlgorithms/Zig’s past year of commit activity

    Zig

    355

    MIT

    55 0 0

    Updated Feb 6, 2026

  • Ruby Public

    All algorithms implemented in Ruby

    TheAlgorithms/Ruby’s past year of commit activity