• Stars
    star
    2,603
  • Rank 17,182 (Top 0.4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Computer science reimplemented in JavaScript

Computer Science in JavaScript (ES5 and ES6)

This repository contains code about various series of posts that I made on my blog about computer science (mostly data structures and sorting algorithms) reimplemented in JavaScript.

What's in this repository?

As of now, it contains 2 main sections:

The #data-structures series

The #data-structures series is a collection of posts about reimplemented data structures in JavaScript.

If you are not familiar with data structures, a quick introduction and the full list of reimplemented data structures can be found in the introduction post of the series on data structures in JavaScript.

If you feel comfortable with the concept of each data structure and only want to see the code, have a look at the summary post of the series. It removes all explanations and contains only the JavaScript code for all data structures discussed in the series.

The data structures in the series

  • Array
  • Hash Table
  • Set
  • Singly Linked List
  • Doubly Linked List
  • Stack
  • Queue
  • Tree
  • Binary Search Tree
  • Trie
  • Graph

The #sorting-algorithms series

The #sorting-algorithms series is a collection of posts about reimplemented sorting algorithms in JavaScript.

If you are not familiar with sorting algorithms, a quick introduction and the full list of reimplemented sorting algorithms can be found in the introduction post of the series on sorting algorithms in JavaScript.

If you feel comfortable with the concept of each sorting algorithms and only want to see the code, have a look at the summary post of the series. It removes all explanations and contains only the JavaScript code for all sorting algorithms discussed in the series.

The sorting algorithms in the series

  • Bubble sort
  • Selection sort
  • Insertion sort
  • Shellsort
  • Merge sort
  • Quicksort

A good way to compare all of them

Unlike the data structures, all sorting algorithms have the same goal and they can all take the same input data. So, for every sorting algorithms of the series, we are going sort an array of 10 numbers from 1 to 10.

By doing so we will be able to compare the different sorting algorithms more easily. Sorting algorithms are very sensitive to the input data so we will also try different input data to see how they affect the performances.

Why this repository?

At the beginning I started those series with 2 different repositories, one for the data structures and another one for the sorting algorithms. It was nice to keep things separately at first but grouping them into the same repository makes more sense to me now.

All computer science concepts are located at the same place and it will allow me to add even more things in the future. Moreover, it wonโ€™t be mandatory that those things will be about data structures or sorting algorithms. There are other important things to know too.

More Repositories

1

react-native-nw-react-calculator

Mobile, desktop and website Apps with the same code
JavaScript
5,209
star
2

coursera-machine-learning

MATLAB
94
star
3

100-best-books

An website to play with the 100 best classical books of all time http://www.100bestbooks.xyz
CSS
72
star
4

hit-100-pagespeed-insights

Let's try to hit the 100 score on PageSpeed Insights
JavaScript
15
star
5

titlecase-french

"Capital and Lowercase Letters in French Title" using capital letters for the principal words
JavaScript
14
star
6

a-tour-of-go

Exercises of the "A tour of Go" website https://tour.golang.org/list
Go
11
star
7

react-native-redux-app-100-10-1

React Native App with redux for the 100-10-1 method
JavaScript
9
star
8

whack-a-mole-game

Very simple whack a mole game in JavaScript
JavaScript
7
star
9

benoitvallon.github.io

My personal blog https://blog.benoitvallon.com
SCSS
4
star
10

basic-react-redux

A basic boilerplate repo for a react and redux app
CSS
4
star
11

dotfiles

My dotfiles based on holman/dotfiles repo https://github.com/holman/dotfiles
Shell
3
star
12

rails-sample-app

Based on the Ruby on Rails tutorial (3rd Ed.) https://www.railstutorial.org/book
Ruby
2
star
13

jekyll-github-pages-presentation

A basic Jekyll and Github pages presentation based on the spectacle library
JavaScript
2
star
14

getting-started-with-jupyter

A few tips to work with jupyter
Jupyter Notebook
2
star
15

phonebook-cli

Command line tool that manages phone books
Python
2
star
16

do-it-every-day

Todolist mixed with a calendar website http://www.do-it-every-day.com
Ruby
2
star
17

machine-learning-with-words

Some tests on machine learning with words
JavaScript
1
star
18

rails-toy-app

Based on the Ruby on Rails tutorial (3rd Ed.) https://www.railstutorial.org/book
Ruby
1
star
19

learn-c-the-hard-way

Exercices based on Learn C The Hard Way book (http://c.learncodethehardway.org/book)
C
1
star
20

spring-contacts

Project to test Spring Boot
Shell
1
star
21

udacity-deep-learning-tensorflow

Jupyter Notebook
1
star
22

various-scripts

Various unrelated scripts
Python
1
star
23

scala-play-intro

Scala Play framework tutorial project
Shell
1
star
24

spring-playground

Spring MVC playground
Java
1
star
25

postgresql-and-node

Code sample based on web article example (PostgreSQL + Node)
JavaScript
1
star