mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00

* Optimised the factorial function. There was previously an unnecessary check for if the number was 0 or 1. * Create WhileLoopFactorial.test.js The test was not present previously. * result *= num * Update WhileLoopFactorial.test.js * testFactorial function * Space for formatting. * should fix the formatting issues. I was having trouble with npx standard, so I just used the online verifier at https://standardjs.com/demo.html
The Algorithms - JavaScript
All algorithms implemented in JavaScript (for educational purposes only)
These are for demonstration purposes only. There are many implementations of sorts in the JavaScript standard library that are much better for performance reasons.
Contribution Guidelines
Read our Contribution Guidelines before you contribute.
List of Algorithms
See our directory.
Algorithm Explanation
See our wiki.
Description
Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
algorithmalgorithm-challengesalgorithmsalgorithms-implementedcipherconversionscryptographydata-structureshacktoberfestjavascriptmathematicssearchsortsorting-algorithms
Readme
GPL-3.0
142 MiB
Languages
JavaScript
100%