Skip to content

About

20 fundamental algorithms — sorting, searching, graphs and dynamic programming — in TypeScript, Python and C++.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MASTER-INDEX-REP

Twenty fundamental computer-science algorithms, each implemented in TypeScript, Python and C++ — 60 clean, documented, standalone reference implementations with complexity analysis.

TypeScript Python C++ Algorithms

Want to see them run? The interactive visualizer and simulation lab lives in THE HUB — MASTER-INDEX (live demo).

Algorithm Index

Category Algorithm TypeScript Python C++
Sorting Quick Sort TS Python C++
Merge Sort TS Python C++
Bubble Sort TS Python C++
Insertion Sort TS Python C++
Heap Sort TS Python C++
Searching Binary Search TS Python C++
Linear Search TS Python C++
Jump Search TS Python C++
Interpolation Search TS Python C++
Exponential Search TS Python C++
Graphs Dijkstra TS Python C++
Breadth-First Search TS Python C++
Depth-First Search TS Python C++
Bellman-Ford TS Python C++
Floyd-Warshall TS Python C++
DP & Math Fibonacci (DP) TS Python C++
0/1 Knapsack TS Python C++
Longest Common Subsequence TS Python C++
Prim's MST TS Python C++
Sieve of Eratosthenes TS Python C++

Best, average and worst-case time complexity plus space complexity for every algorithm are summarized in Complexity.md.

Design Principles

Language Style Focus
TypeScript Functional, strongly typed Generics and interfaces for type-safe, reusable code
Python Pythonic, procedural Readability and idiomatic use of the standard library
C++ Systems-level STL containers, memory efficiency and execution speed

Every file is self-contained and documents its time and space complexity, so it can be read, copied or run on its own.

Running an Implementation

# TypeScript (Node.js 20+)
npx tsx TypeScript/Sorting/QuickSort.ts

# Python 3
python Python/Graphs/Dijkstra.py

# C++ (C++17)
g++ -std=c++17 CPP/DP_Math/Knapsack.cpp -o knapsack && ./knapsack

C++ files include a runnable main() demo; TypeScript and Python files end with a commented example usage block — uncomment it to see output.

Repository Structure

TypeScript/ · Python/ · CPP/
   ├── Sorting/
   ├── Searching/
   ├── Graphs/
   └── DP_Math/
Complexity.md

Author

Abdellah Sheikh — abdellahsheikh.dev · LinkedIn

About

20 fundamental algorithms — sorting, searching, graphs and dynamic programming — in TypeScript, Python and C++.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages