Skip to content

estevanmaito/algorithms-in-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Science algorithms implemented in JavaScript

IN PROGRESS

Computer Science algorithms implemented in JavaScript, based mostly on these resources:

Usage

If you want to test your knowledge

If you just want to see the algorithms

Test your knowledge

  1. Clone and install dependencies
git clone https://github.com/estevanmaito/algorithms-in-javascript
cd algorithms-in-javascript
npm install
  1. Delete the code above this line for every exercise:
const test = require('tape')
  1. Write code to make the tests pass

  2. Run tests

node file-name.js

Algorithms

Feel free to navigate around.

Data Structures

Binary Search Tree

Linked list

Queue

Stack

Sorting

Bubble sort

Bucket sort

Counting sort

Heap sort

Insertion sort

Merge sort

Quick sort

Radix sort

Selection sort

Searching

Binary search

Breadth-first search

Depth-first search