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

Roman 1381ed0c17 feat: add dutchNationalFlagSort implementation (#1305) 2 weeks ago
.github 7ea7d7b8c6 docs: improve the issue forms (#1272) 3 months ago
.husky 16fa774012 chore: only test changed packages (#1194) 5 months ago
Backtracking 49bd1fd0c2 Adding to backtracking (#1289) 1 month ago
Bit-Manipulation 78f023fdd1 algorithm: Log2 using bitwise operations (#1132) 5 months ago
Cache 002b10a5aa docs: fix typos (#1283) 1 month ago
Cellular-Automata 327e18f450 Elementary cellular automata (#1302) 2 weeks ago
Ciphers 002b10a5aa docs: fix typos (#1283) 1 month ago
Conversions 0c427580f1 Make ArbitraryBase Unicode-aware (#1299) 4 weeks ago
Data-Structures 566d9103cd fix: refactor PrimMST and fix bug in PriorityQueue (#1300) 4 weeks ago
Dynamic-Programming 6aa3314b93 fix: fixed error in the MaxProductOfThree algorithm (#1295) 1 month ago
Geometry 002b10a5aa docs: fix typos (#1283) 1 month ago
Graphs 566d9103cd fix: refactor PrimMST and fix bug in PriorityQueue (#1300) 4 weeks ago
Hashes 072523d594 merge: Fix spellings (#821) 1 year ago
Maths 002b10a5aa docs: fix typos (#1283) 1 month ago
Navigation 2ae00a97dc merge: add description (#843) 1 year ago
Project-Euler 002b10a5aa docs: fix typos (#1283) 1 month ago
Recursive 5364a1c31b chore: check for invalid input to factorial (#1229) 4 months ago
Search b71815d50c Fix grammar mistakes in JSDoc (#1127) 5 months ago
Sorts 1381ed0c17 feat: add dutchNationalFlagSort implementation (#1305) 2 weeks ago
String 00a97d5e1b algorithm: percentage of letter (#1261) 4 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) 3 weeks ago
.gitignore b793105009 Update .gitignore 1 year ago
.gitpod.yml ff606a019e chore: improve the Gitpod file (#1203) 5 months ago
.prettierrc e112434dee Add tests to Math (#423) 2 years ago
CONTRIBUTING.md cb4c40e95c docs: improve the contributing guidelines (#1271) 3 months ago
DIRECTORY.md 1381ed0c17 feat: add dutchNationalFlagSort implementation (#1305) 2 weeks ago
LICENSE 386c646ac5 Initial commit 5 years ago
README.md b36b45888e docs: fix CI and remove LGTM badges (#1269) 3 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) 2 months ago
package.json 16fa774012 chore: only test changed packages (#1194) 5 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.