🌐 AI搜索 & 代理 主页
Skip to content

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

Notifications You must be signed in to change notification settings

Ppang0405/javascript-datastructures-algorithms

 
 

Repository files navigation

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

📚 Learning Resources

New to this repository? Check out our comprehensive learning guides:

  • Learning Guide - Complete guide on how to learn from this codebase, what's covered, and interview preparation tips
  • Quick Reference - Cheat sheet for common patterns, time complexity, and quick commands
  • Progress Tracker - Track your learning journey with a 12-week study plan

What You'll Learn

This repository covers:

  • Data Structures: Arrays, Stack, Queue, Linked Lists, Hash Tables, Trees (BST/AVL/Red-Black), Heaps, Tries, Graphs
  • Algorithms: Sorting, Searching, Tree Traversals, Graph Algorithms (BFS/DFS/Dijkstra), Recursion
  • Interview Prep: LeetCode problems integrated throughout, real-world examples
  • Complexity Analysis: Big O notation and performance optimization

Interview Coverage: ~75-80% of general software engineering interviews | 60-70% of FAANG interviews

See Learning Guide for detailed coverage analysis and study recommendations.

💻 Tecnologies

  • JavaScript
  • TypeScript
  • Jest (tests)

Happy Coding!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.9%
  • TypeScript 40.4%
  • HTML 0.7%