动态规划(Dynamic Programming)、位操作(Bit Manipulation)、回溯(Backtracking)算法等C++版算法实现。涵盖了计算机科学、数学和统计、数据科学、机器学习、工程等领域的各种主题。

BekzodIsakov 1666c3a0be fix error in SinglyLinkedList head method (#1322) 1 week ago
.github 84b01aeb61 fixed: to correct grammatical mistakes (#1307) 2 months ago
.husky 16fa774012 chore: only test changed packages (#1194) 7 months ago
Backtracking 49bd1fd0c2 Adding to backtracking (#1289) 3 months ago
Bit-Manipulation 78f023fdd1 algorithm: Log2 using bitwise operations (#1132) 7 months ago
Cache 002b10a5aa docs: fix typos (#1283) 3 months ago
Cellular-Automata 327e18f450 Elementary cellular automata (#1302) 2 months ago
Ciphers 331a4d26cf feat: Ciphers/MorseCode Algorithm (#1315) 3 weeks ago
Conversions 0c427580f1 Make ArbitraryBase Unicode-aware (#1299) 3 months ago
Data-Structures 1666c3a0be fix error in SinglyLinkedList head method (#1322) 1 week ago
Dynamic-Programming 6aa3314b93 fix: fixed error in the MaxProductOfThree algorithm (#1295) 3 months ago
Geometry 002b10a5aa docs: fix typos (#1283) 3 months ago
Graphs 566d9103cd fix: refactor PrimMST and fix bug in PriorityQueue (#1300) 3 months ago
Hashes 072523d594 merge: Fix spellings (#821) 1 year ago
Maths e6df6ebad6 New Algorithm: Parity Outlier (#1314) 3 weeks ago
Navigation 2ae00a97dc merge: add description (#843) 1 year ago
Project-Euler 002b10a5aa docs: fix typos (#1283) 3 months ago
Recursive 5364a1c31b chore: check for invalid input to factorial (#1229) 7 months ago
Search b71815d50c Fix grammar mistakes in JSDoc (#1127) 7 months ago
Sorts 1381ed0c17 feat: add dutchNationalFlagSort implementation (#1305) 2 months ago
String 00a97d5e1b algorithm: percentage of letter (#1261) 6 months ago
Timing-Functions e18718b7d5 Remove live code & console.log, leave examples as comments. 1 year ago
Trees fc06690672 fixes: #1280 and test: added tests for DFS algorithm (#1303) 2 months ago
.gitignore b793105009 Update .gitignore 1 year ago
.gitpod.yml ff606a019e chore: improve the Gitpod file (#1203) 7 months ago
.prettierrc e112434dee Add tests to Math (#423) 2 years ago
CONTRIBUTING.md cb4c40e95c docs: improve the contributing guidelines (#1271) 5 months ago
DIRECTORY.md 1381ed0c17 feat: add dutchNationalFlagSort implementation (#1305) 2 months ago
LICENSE 386c646ac5 Initial commit 5 years ago
README.md b36b45888e docs: fix CI and remove LGTM badges (#1269) 5 months ago
babel.config.cjs 8c64f99316 Officially switching to ES Module system. 1 year ago
package-lock.json 8cd86b1eda chore(deps): bump json5 from 1.0.1 to 1.0.2 (#1274) 4 months ago
package.json 16fa774012 chore: only test changed packages (#1194) 7 months ago

README.md

The Algorithms - JavaScript

JavaScript Repository of TheAlgorithms, which implements various algorithms and data structures in JavaScript.

[![JavaScript Banner][banner]](DIRECTORY.md) [![Checks][checks]][actions] [![Contributions Welcome][welcome]](CONTRIBUTING.md) [![standard.js][standard-logo]][standard-js] [![Discord chat][chat]][discord-server]

These implementations are for demonstrative purposes only. Dedicated implementations of these algorithms and data structures are much better for performance and security reasons. We also do not provide any guarantee for api stability.


Before contributing to this repository, make sure to read our Contribution Guidelines. You can look at other TheAlgorithms Repositories or the issues with a "help wanted" label for inspiration regarding what to implement. Our maintainers will guide you through how to make your contribution properly if you make any mistakes. The names of the maintainers of this repository are listed in the CODEOWNERS file.

You can find a list of the algorithms currently in the repository in the directory. Explanations of many of the algorithms can be found in the wiki.