The Algorithms - TypeScript

repository·master·Indexed 25 days ago

https://github.com/thealgorithms/typescript

A collection of algorithms and data structures implemented in TypeScript for educational and demonstrative purposes. The repository includes implementations for sorting, searching, graph algorithms, dynamic programming, bit manipulation, backtracking, and various data structures such as heaps, tries, and linked lists. These implementations are intended for learning and are not recommended for production use.

Tokens
897
Snippets
0
Records
11
Agent score
34%

What's inside thealgorithms-typescript

  1. Overview of The Algorithms - TypeScript

    master

    The Algorithms - TypeScript is a repository containing various implementations of algorithms and data structures written in TypeScript. It is intended for demonstrative and educational purposes.

    Note: These implementations are not intended for production use. For performance-critical or security-sensitive applications, use dedicated, optimized libraries instead. The project does not guarantee API stability.

  2. Explore Bit Manipulation algorithms

    master

    The repository contains bit manipulation implementations including:

    • Add Binary: Adds two binary numbers.
    • Is Power Of 2: Checks if a number is a power of 2.
    • Is Power Of 4: Checks if a number is a power of 4.
    • Log Two: Calculates the base-2 logarithm.
  3. Explore Data Structures

    master

    The repository provides various data structure implementations categorized by type:

    Disjoint Set

    • Disjoint Set

    Heap

    • Heap

    List

    • Doubly Linked List
    • Linked List
    • Singly Linked List

    Map

    • Hash Map
    • Map

    Queue

    • Array Queue
    • Circular Queue
    • Linked Queue
    • Queue
    • Stack Queue

    Set

    • Hash Map Set
    • Map Set
    • Set

    Stack

    • Linked List Stack
    • Stack

    Tree

    • Binary Search Tree

    Tries

    • Tries
  4. Explore Mathematics algorithms

    master

    The repository contains a wide variety of mathematical algorithm implementations, including:

    • Basic Arithmetic & Properties: Absolute Value, Aliquot Sum, Armstrong Number, Digit Sum, Factorial, Greatest Common Factor, Is Divisible, Is Even, Is Leap Year, Is Odd, Is Palindrome, Is Square Free, Lowest Common Multiple, Number Of Digits, Perfect Cube, Perfect Number, Perfect Square, Pronic Number, Signum, Square Root, and Ugly Numbers.
    • Number Theory: Euler Totient, Prime Factorization, Primes, Sieve Of Eratosthenes, and Zellers Congruence.
    • Sequences & Series: Fibonacci, Juggler Sequence, Pascals Triangle, and Hexagonal Numbers.
    • Conversions & Geometry: Binary Convert, Degrees To Radians, Radians To Degrees, and Hamming Distance.
    • Statistics & Linear Algebra: Calculate Mean, Calculate Median, Gaussian Elimination, and Matrix Multiplication.
  5. Explore Sorting algorithms

    master

    The repository provides various sorting algorithm implementations:

    • Comparison-based Sorts: Bogo Sort, Bubble Sort, Cycle Sort, Gnome Sort, Heap Sort, Insertion Sort, Merge Sort, Quick Sort, Selection Sort, Shell Sort, Swap Sort, and Tree Sort.
    • Non-comparison Sorts: Counting Sort.
    • Selection Algorithms: Quick Select.