mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-04 15:39:42 +08:00

* docs: update js doc * feat: add number type validation condition * pref: Optimize space complexity remove the Array from the algo and used two flag varible to calculate last two numbers & optimize the sapce complexity O(n) to O(1) * test: add test case for invalid types
merge: Bubble Sort enhancements for nearly sorted or sorted array, added test cases and documentation (#895)
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%