JavaScript
JavaScript copied to clipboard
Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
To calculate the hypothenuse, adjacent and base of the triangle [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [✓ ] Add an algorithm? - [ ] Fix a bug...
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [ ] Add an algorithm? - [x] Fix a bug or typo in an existing algorithm? - [x] Documentation change? ###...
Implemented the classical version of Shor's quantum algorithm for factorizing integers.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [x] Fix a bug or typo in an existing algorithm? - [x] Documentation change? ### Checklist:...
BSTree traversal like inOrder, preOrder and postOrder functions are added with O(n) time and O(n) space complexity [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm?...
### Describe your change: Without the outer array , given arrays are passed as 4 arguments to the `island` function - [ ] Add an algorithm? - [x] Fix a...
We have now successfully added guidelines for importing and using algorithms in this repository, inside other algorithms. This has been done to reduce code repetition and uphold code quality. Some...
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [ ] Add an algorithm? - [x] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...
Implementation of [CycleDetection.js](https://github.com/TheAlgorithms/JavaScript/blob/master/Data-Structures/Linked-List/CycleDetection.js) seems inappropriate. - Weird function name `main()` and its invocation can cause the program to crash. - Tests are missing. - Not exported, Hence not resuable. -...