Skip to content

Latest commit

 

History

History

part-1-data-structures-and-algorithms

Part 1: Data Structures and Algorithms with JavaScript/TypeScript

Methodology and structure:

  1. Get the book "Data Structures and Algorithms with JavaScript" by Michael McMillan.
  2. Read one chapter at a time.
  3. Create a branch and copy the exercises into a new directory with your name
  4. Solve all of the exercises.
  5. If there are no tests you should write them.

Notes: Each exercise should be attempted for at least 20-30 minutes before looking at the chapter examples. Only after another 20-30 minutes of struggle you should look for outside help (stackoverflow, friends?, chatgpt, etc...)

Chapters:

  • The JavaScript Programming Environment and Model
  • Arrays
  • Lists
  • Stacks
  • Queues
  • Linked Lists
  • Dictionaries
  • Hashing
  • Sets
  • Binary Trees and Binary Search Trees
  • Graphs and Graph Algorithms
  • Sorting Algorithms
  • Searching Algorithms
  • Advanced Algorithms

Run npm install to start Run npm test to run all test files Run npx jest [path-to-file] to run a specific test or install an extension for ease of use

For more information: nodejs typescript jest