collection of JavaScript and TypeScript data structures and algorithms for education purposes. Source code bundle of JavaScript algorithms and data structures book
Source code of Learning JavaScript Data Structures and Algorithms book, third edition.
test
directory)src/js/index.js
file contains all the data structures and algorithms listed by chapter.
|_examples (how to use each data structure and algorithm, organized by chapter)
|_src
|___js (source code: JavaScript version)
|_____data-structures
|_______models (classes used by DS: Node, ValuePair, ...)
|_____others (other algorithms such as palindome checker, hanoi tower)
|___ts (source code: TypeScript version)
|_____data-structures
|_______models
|_____others
|_test (unit tests with Mocha and Chai for src)
|___js (tests for JavaScript code)
|___ts (tests for TypeScript code)
cd /Users/.../javascript-datastructures-algorithms
(Linux/Max) or cd C:/.../javascript-datastructures-algorithms
npm install
to install all dependencieshttp-server html
or npm run serve
. Open your browser http:\\localhost:8080
to see the book examplescd html/chapter01
and run each javascript file with node: node 02-Variables
Right click on the html file you would like to see the examples, right click and 'Open with Chrome (or any other browser)'
Or open the examples/index.html
file to easily navigate through all examples:
Happy Coding!
1st edition | 2nd edition | 3rd edition |
---|---|---|
Book link | Book link | Book link |
Book link - first edition:
Book link - second edition:
Book link - third edition:
Please create an Issue or Pull Request