A collection of algorithms and data structures implemented in JavaScript. This repository includes popular algorithms and data structures used in computer science, along with test cases and explanations.
-
Clone the repository:
git clone https://github.com/dinhthi12/project.git
-
Navigate into the directory:
cd project
-
Install dependencies using Yarn:
yarn install
-
Usage
You can run specific algorithms or data structure files by navigating to the desired folder and running the script with Node.js. For example, to run the Bubble Sort algorithm:node src/algorithms/sorting/bubbleSort.js
-
Testing
This repository uses Jest for testing. To run the test cases:yarn run test