- Notifications
You must be signed in to change notification settings - Fork3
JS-DSA is a comprehensive collection of data structures and algorithms implemented in JavaScript. This project is designed to be a helpful resource for developers, students, and anyone interested in learning about data structures and algorithms through practical JavaScript examples.
License
PB2204/JS-DSA
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JS-DSA is a comprehensive collection of data structures and algorithms implemented in JavaScript. This project is designed to be a helpful resource for developers, students, and anyone interested in learning about data structures and algorithms through practical JavaScript examples.
- Installation
- Usage
- Practical Examples
- Contribution Details
- Code of Conduct
- Learning Resources
- License
- Developer Options
You can install JS-DSA using either npm or yarn. First, clone the repository to your local machine:
git clone https://github.com/pb2204/JS-DSA.gitcd JS-DSA
npm install adv-dsa
yarn add adv-dsa
JS-DSA provides a wide range of data structures and algorithms. You can utilize them by importing the necessary classes into your JavaScript projects.
// Example of using a Stack from the data structures moduleconstStack=require('adv-dsa').Stack;conststack=newStack();stack.push(1);stack.push(2);stack.push(3);console.log(stack.pop());// Outputs: 3
For detailed information on how to use each data structure and algorithm, consult theLEARN.md
document in this repository.
Let's look at some practical examples of using JS-DSA classes:
constbinarySearch=require('adv-dsa').BinarySearch;constsortedArray=[1,2,3,4,5,6,7,8,9,10];consttarget=5;constindex=binarySearch(sortedArray,target);console.log(`Index of${target} is${index}`);
constquickSort=require('adv-dsa').QuickSort;constunsortedArray=[3,6,8,10,1,2,1];constsortedArray=quickSort(unsortedArray);console.log(sortedArray);
This project is open-source and available under theMIT License.
For developers who want to contribute to this project or want to report issues, please refer to theCONTRIBUTING.md guide.
Please follow ourCode of Conduct to foster an open and welcoming environment for everyone.
Check out theLEARN.md file for learning resources related to data structures and algorithms.
Feel free to contribute, provide feedback, and help us improve this project for the community!
- Name ::Pabitra Banerjee
- Email ::Pabitra Banerjee
- GitHub ::Pabitra Banerjee
About
JS-DSA is a comprehensive collection of data structures and algorithms implemented in JavaScript. This project is designed to be a helpful resource for developers, students, and anyone interested in learning about data structures and algorithms through practical JavaScript examples.