{"id":13457851,"url":"https://github.com/loiane/javascript-datastructures-algorithms","last_synced_at":"2025-04-23T18:41:51.907Z","repository":{"id":17329763,"uuid":"20100827","full_name":"loiane/javascript-datastructures-algorithms","owner":"loiane","description":":books: collection of JavaScript and TypeScript data structures and algorithms for education purposes. Source code bundle of JavaScript algorithms and data structures book","archived":false,"fork":false,"pushed_at":"2024-10-29T10:50:14.000Z","size":14122,"stargazers_count":4640,"open_issues_count":6,"forks_count":1243,"subscribers_count":135,"default_branch":"main","last_synced_at":"2024-10-29T15:08:06.496Z","etag":null,"topics":["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"],"latest_commit_sha":null,"homepage":"https://goo.gl/hrb00r","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loiane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-23T13:40:54.000Z","updated_at":"2024-10-28T21:13:33.000Z","dependencies_parsed_at":"2024-04-16T13:39:27.273Z","dependency_job_id":"5142b1d2-3e85-4b6e-8621-ace9780cf375","html_url":"https://github.com/loiane/javascript-datastructures-algorithms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fjavascript-datastructures-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fjavascript-datastructures-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fjavascript-datastructures-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fjavascript-datastructures-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loiane","download_url":"https://codeload.github.com/loiane/javascript-datastructures-algorithms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250493327,"owners_count":21439736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2024-07-31T09:00:38.335Z","updated_at":"2025-04-23T18:41:51.877Z","avatar_url":"https://github.com/loiane.png","language":"TypeScript","readme":"Learning JavaScript Data Structures and Algorithms\n====================================\n\n[![Build Status](https://travis-ci.org/loiane/javascript-datastructures-algorithms.svg?branch=master)](https://travis-ci.org/loiane/javascript-datastructures-algorithms)\n[![codecov](https://codecov.io/gh/loiane/javascript-datastructures-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/loiane/javascript-datastructures-algorithms)\n[![devDependencies Status](https://david-dm.org/loiane/javascript-datastructures-algorithms/dev-status.svg)](https://david-dm.org/loiane/javascript-datastructures-algorithms?type=dev)\n[![dependencies Status](https://david-dm.org/loiane/javascript-datastructures-algorithms/status.svg)](https://david-dm.org/loiane/javascript-datastructures-algorithms)\n[![Greenkeeper badge](https://badges.greenkeeper.io/loiane/javascript-datastructures-algorithms.svg)](https://greenkeeper.io/)\n\n\nSource code of **Learning JavaScript Data Structures and Algorithms** book, third edition.\n\n## List of available chapters:\n\n* 01: [JavaScript: a quick overview](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter01_02)\n* 02: [ECMAScript and TypeScript Introduction](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter01_02)\n* 03: [Arrays](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter03)\n* 04: [Stacks](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter04)\n* 05: [Queues and Deques](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter05)\n* 06: [LinkedLists](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter06)\n* 07: [Sets](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter07)\n* 08: [Dictionaries and Hashes](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter08)\n* 09: [Recursion](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter09)\n* 10: [Trees](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter10)\n* 11: [Heap](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter11)\n* 12: [Graphs](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter12)\n* 13: [Sorting and Searching Algorithms](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter13)\n* 14: [Algorithm Design and Techniques](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter14)\n* 15: [Algorithm Complexity](https://github.com/loiane/javascript-datastructures-algorithms/tree/third-edition/examples/chapter15)\n\n### Third Edition Updates\n\n* Algorithms using ES2015+ (ES6+)\n* New data structures and algorithms\n* All chapters rewritten and reviewed \n* Three (3) new chapters\n* Creation of a Data Structures and Algorithms library that can be used in the browser or with Node.js\n* Algorithms tested with Mocha + Chai (test code available in `test` directory)\n* **TypeScript** version of the source code included (library and tests)\n\n## Project Structure\n\n`src/js/index.js` file contains all the data structures and algorithms listed by chapter.\n\n```\n|_examples (how to use each data structure and algorithm, organized by chapter)\n|_src \n|___js (source code: JavaScript version)\n|_____data-structures\n|_______models (classes used by DS: Node, ValuePair, ...)\n|_____others (other algorithms such as palindome checker, hanoi tower)\n|___ts (source code: TypeScript version)\n|_____data-structures\n|_______models\n|_____others\n|_test (unit tests with Mocha and Chai for src)\n|___js (tests for JavaScript code)\n|___ts (tests for TypeScript code)\n```\n\n## Installing and running the book examples With Node\n\n* Install [Node](https://nodejs.org)\n* Open terminal/cmd and change directory to this project folder: `cd /Users/.../javascript-datastructures-algorithms` (Linux/Max) or `cd C:/.../javascript-datastructures-algorithms`\n* run `npm install` to install all dependencies\n* To see the examples, run `http-server html` or `npm run serve`. Open your browser `http:\\\\localhost:8080` to see the book examples\n* Or `cd html/chapter01` and run each javascript file with node: `node 02-Variables`\n\n## Running the examples in the browser\n\n* Right click on the html file you would like to see the examples, right click and 'Open with Chrome (or any other browser)'\n\n* Or open the `examples/index.html` file to easily navigate through all examples:\n\n* Demo: [https://javascript-ds-algorithms-book.firebaseapp.com](https://javascript-ds-algorithms-book.firebaseapp.com)\n\n\u003cimg src=\"examples/examples-screenshot.png\"\u003e\n\nHappy Coding!\n\n## Other editions\n\n| 1st edition   | 2nd edition   | 3rd edition   | \n| ------------- |:-------------:|:-------------:| \n| ![1st edition](https://images-na.ssl-images-amazon.com/images/I/51xXGv7QlBL._SX403_BO1,204,203,200_.jpg)      | ![2nd edition](https://images-na.ssl-images-amazon.com/images/I/51PWJ%2BoKc2L._SX403_BO1,204,203,200_.jpg) | ![3rd edition](https://images-na.ssl-images-amazon.com/images/I/41oSXp3VztL._SX404_BO1,204,203,200_.jpg) |\n| [Book link](http://amzn.to/1Y1OWPx)| [Book link](http://amzn.to/1TSkcA1)| [Book link](http://a.co/cbMlYmJ)|\n\nBook link - first edition:\n  - [Packt](https://www.packtpub.com/application-development/learning-javascript-data-structures-and-algorithms)\n  - [Amazon](http://amzn.to/1Y1OWPx)\n  - [Chinese version](http://www.ituring.com.cn/book/1613)\n  - [Korean version](http://www.acornpub.co.kr/book/javascript-data-structure)\n\nBook link - second edition:\n - [Packt](https://www.packtpub.com/web-development/learning-javascript-data-structures-and-algorithms-second-edition)\n - [Amazon](http://amzn.to/1TSkcA1)\n - [Chinese version](http://www.ituring.com.cn/book/2029)\n - [Brazilian Portuguese version](https://novatec.com.br/livros/estruturas-de-dados-algoritmos-em-javascript/)\n\n Book link - third edition:\n - [Packt](https://www.packtpub.com/en-us/product/learning-javascript-data-structures-and-algorithms-9781788624947)\n - [Amazon](http://a.co/cbMlYmJ)\n - [Chinese version](http://www.ituring.com.cn/book/2653)\n - [Brazilian Portuguese version](https://novatec.com.br/livros/estruturas-de-dados-algoritmos-em-javascript-2ed/)\n\n### Found an issue or have a question?\n\nPlease create an [Issue](https://github.com/loiane/javascript-datastructures-algorithms/issues) or [Pull Request](https://github.com/loiane/javascript-datastructures-algorithms/pulls) \n","funding_links":[],"categories":["TypeScript","JavaScript","Uncategorized","algorithm"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiane%2Fjavascript-datastructures-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floiane%2Fjavascript-datastructures-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiane%2Fjavascript-datastructures-algorithms/lists"}