JavaScript icon indicating copy to clipboard operation
JavaScript copied to clipboard

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

Results 142 JavaScript issues
Sort by recently updated
recently updated
newest added

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.

algorithm

[![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?...

algorithm

[![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:...

algorithm
code quality

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?...

changes required
algorithm
stale

### Describe your change: Without the outer array , given arrays are passed as 4 arguments to the `island` function - [ ] Add an algorithm? - [x] Fix a...

fix

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...

help wanted
beginner-friendly
code quality

[![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?...

code quality
tests

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. -...

code quality