loiane/javascript-datastructures-algorithms

📚 collection of JavaScript and TypeScript data structures and algorithms for education purposes. Source code bundle of JavaScript algorithms and data structures book

TypeScript

4,884

136 commits

updated Oct 14, 2026

See the code

README

Learning JavaScript Data Structures and Algorithms

Project Structure

You can find the source code organized by chapter under the src folder.

Each file has the .js and the .ts extension, so you get both the JavaScript and the Typescript versions of the source code.

Each data structure and algorithm from parts 2 and 3 also have a _test_ folder where you can find the respective Jest test cases.

How to use this repository

Install all dependencies

npm install

Run all tests

npm test

Run a particular example

cd src/01-intro
node 01-hello-variables.js

or:

node src/01-intro/01-hello-variables.js

💻 Tecnologies

  • JavaScript
  • TypeScript
  • Jest (tests)

Happy Coding!

algorithm
avl-tree
binary-tree
data-structures
deque
dictionary
dijkstra-algorithm
graph
graph-algorithms
javascript-algorithms
linked-list
priority-queue
queue
quicksort
set
sorting-algorithms
stack
tree
typescript
typescript-algorithms

loiane/javascript-datastructures-algorithms

📚 collection of JavaScript and TypeScript data structures and algorithms for education purposes. Source code bundle of JavaScript algorithms and data structures book

TypeScript

4,884

136 commits

updated Oct 14, 2026

See the code

README

Learning JavaScript Data Structures and Algorithms

Project Structure

You can find the source code organized by chapter under the src folder.

Each file has the .js and the .ts extension, so you get both the JavaScript and the Typescript versions of the source code.

Each data structure and algorithm from parts 2 and 3 also have a _test_ folder where you can find the respective Jest test cases.

How to use this repository

Install all dependencies

npm install

Run all tests

npm test

Run a particular example

cd src/01-intro
node 01-hello-variables.js

or:

node src/01-intro/01-hello-variables.js

💻 Tecnologies

  • JavaScript
  • TypeScript
  • Jest (tests)

Happy Coding!

algorithm
avl-tree
binary-tree
data-structures
deque
dictionary
dijkstra-algorithm
graph
graph-algorithms
javascript-algorithms
linked-list
priority-queue
queue
quicksort
set
sorting-algorithms
stack
tree
typescript
typescript-algorithms

Project health

Overall

4.1/10

Maintained

10/10

Code review

0/10
OpenSSF Scorecard

Latest release

3.7.8 · Jun 1, 2024

Releases this year

0

Significant stargazers

Ulises Gascón

1,799 followers · starred Jun 2019

Alexey Pyltsyn

1,272 followers · starred Apr 2018

Vse Mozhe Buty

168 followers · starred Dec 2020

Charly Poly

245 followers · starred Jun 2018