JavaScript README

The project's README from github.com/TheAlgorithms/JavaScript. As one markdown file: README.md.

The Algorithms - JavaScript

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

JavaScript Banner

Gitpod ready-to-code Checks codecov Contributions Welcome standard.js Discord chat


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.


Thanks to all the contributors ❤️

JavaScript (TheAlgorithms/JavaScript)

Searching Database…

这是什么?一个用 JavaScript 实现的经典算法和数据结构合集,专为想要可读性强、组织良好的参考代码的初学者打造。
这是我可以安装的库,还是只供浏览的参考合集?它是一个参考合集,而不是用于生产环境的软件包。维护者表示,这些实现仅用于演示,不保证性能、安全性或 API 稳定性。
我该如何使用这些代码?无需安装步骤。克隆仓库,在 DIRECTORY.md 中找到所需文件,然后将其复制到你的项目中;仓库自带的测试可通过 'vitest run' 脚本运行。
我需要特定版本的 Node.js 吗?需要。package.json 中的 engines 字段要求 Node.js 20.6.0 或更高版本。
我能在生产环境中使用这些代码吗?不能。项目明确警告这些实现仅供演示;对于实际工作负载,建议改用经过性能和安全审查的专业库。
它涵盖哪些类别的算法?该仓库涵盖密码算法、编码转换、密码学、数据结构、数学、搜索算法和排序算法,与其 GitHub 主题标签保持一致。
是否有强制执行的代码风格?有。代码使用 Prettier 格式化,并按照 standard.js 的约定进行检查,CI 会在拉取请求时自动运行这些检查。
在哪里可以找到每种算法的工作原理说明?许多算法在项目的 wiki 中有文字说明,README 中已提供相关链接。
Size
2.9 MB
Stars
34.3K
Updated
CommitMar 07
Age
9y
Commits · 90 Days