{"id":20629756,"url":"https://github.com/pb2204/js-dsa","last_synced_at":"2025-04-15T18:18:15.692Z","repository":{"id":199986989,"uuid":"704699326","full_name":"PB2204/JS-DSA","owner":"PB2204","description":"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.","archived":false,"fork":false,"pushed_at":"2023-11-19T18:41:46.000Z","size":173,"stargazers_count":35,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T10:57:20.884Z","etag":null,"topics":["collaborate","communityexchange","ghdesktop","github","github-campus-experts","github-codespaces","github-pages","gitkraken","gitlens","hacktoberfest","hacktoberfest-accepted","javascript-library","jetbrains","learn","microsoft","microsoftvisualstudio","npm","npm-package","student-vscode"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/adv-dsa","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PB2204.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2023-10-13T21:16:37.000Z","updated_at":"2024-12-31T09:47:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"78e4f862-530c-4be0-85dc-8a15f7eea153","html_url":"https://github.com/PB2204/JS-DSA","commit_stats":null,"previous_names":["pb2204/js-dsa"],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FJS-DSA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FJS-DSA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FJS-DSA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FJS-DSA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PB2204","download_url":"https://codeload.github.com/PB2204/JS-DSA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981256,"owners_count":21193143,"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":["collaborate","communityexchange","ghdesktop","github","github-campus-experts","github-codespaces","github-pages","gitkraken","gitlens","hacktoberfest","hacktoberfest-accepted","javascript-library","jetbrains","learn","microsoft","microsoftvisualstudio","npm","npm-package","student-vscode"],"created_at":"2024-11-16T14:05:58.421Z","updated_at":"2025-04-15T18:18:15.670Z","avatar_url":"https://github.com/PB2204.png","language":"JavaScript","readme":"# JS-DSA :: JavaScript Data Structures and Algorithms\n\nJS-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.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Practical Examples](#practical-examples)\n- [Contribution Details](CONTRIBUTING.md)\n- [Code of Conduct](CODE_OF_CONDUCT.md)\n- [Learning Resources](LEARN.md)\n- [License](#license)\n- [Developer Options](#developer-options)\n\n## Installation\n\nYou can install JS-DSA using either npm or yarn. First, clone the repository to your local machine:\n\n```bash\ngit clone https://github.com/pb2204/JS-DSA.git\ncd JS-DSA\n```\n\n### Using npm\n\n```bash\nnpm install adv-dsa\n```\n\n### Using yarn\n\n```bash\nyarn add adv-dsa\n```\n\n## Usage\n\nJS-DSA provides a wide range of data structures and algorithms. You can utilize them by importing the necessary classes into your JavaScript projects.\n\n```javascript\n// Example of using a Stack from the data structures module\nconst Stack = require('adv-dsa').Stack;\n\nconst stack = new Stack();\nstack.push(1);\nstack.push(2);\nstack.push(3);\n\nconsole.log(stack.pop()); // Outputs: 3\n```\n\nFor detailed information on how to use each data structure and algorithm, consult the `LEARN.md` document in this repository.\n\n## Practical Examples\n\nLet's look at some practical examples of using JS-DSA classes:\n\n### Example 1: Binary Search\n\n```javascript\nconst binarySearch = require('adv-dsa').BinarySearch;\n\nconst sortedArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nconst target = 5;\n\nconst index = binarySearch(sortedArray, target);\nconsole.log(`Index of ${target} is ${index}`);\n```\n\n### Example 2: QuickSort\n\n```javascript\nconst quickSort = require('adv-dsa').QuickSort;\n\nconst unsortedArray = [3, 6, 8, 10, 1, 2, 1];\nconst sortedArray = quickSort(unsortedArray);\n\nconsole.log(sortedArray);\n```\n\n## License\n\nThis project is open-source and available under the [MIT License](LICENSE).\n\n## Contribution Details\n\nFor developers who want to contribute to this project or want to report issues, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) guide.\n\n## Code of Conduct\n\nPlease follow our [Code of Conduct](CODE_OF_CONDUCT.md) to foster an open and welcoming environment for everyone.\n\n## Learning Resources\n\nCheck out the [LEARN.md](LEARN.md) file for learning resources related to data structures and algorithms.\n\nFeel free to contribute, provide feedback, and help us improve this project for the community!\n\n## Developer Details\n\n- Name :: [Pabitra Banerjee](https://pabitrabanerjee.me)\n- Email :: [Pabitra Banerjee](mailto:rockstarpabitra2204@gmail.com)\n- GitHub :: [Pabitra Banerjee](https://github.com/PB2204)\n\n# Happy Coding !!!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb2204%2Fjs-dsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb2204%2Fjs-dsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb2204%2Fjs-dsa/lists"}