百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

algorithms-js

> 包管理
开源

JavaScript 中的可消耗数据结构和算法库

200 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

JavaScript 中的可消耗数据结构和算法库

algorithms-js

Consumable Data Structures and Algorithms library in JavaScript

Note

I'm looking for maintainers for this project. Please email me if you are interested in maintaining the project.

Installation

Run

bash
$ npm install algorithms-js

Or use unpkg:

xml

Or use jsdeliver:

xml

Usage

Library contains both algorithms as well as data structures:

Data Structures

Currently, library supports following data structures:

  • Doubly Linked List
  • Fenwick Tree
  • Graph
  • Heap
  • Linked List
  • Queue
  • Stack
  • Trie

Algorithms

Currently library supports following algorithms:

Search

Various Searching algorithms:

  • Binary Search
  • Breadth First Search
  • Depth First Search
  • Exponential Search
  • Interpolation Search
  • Jump Search
  • Linear Search
  • Ternary Search

Sort

Various Sorting algorithms:

  • Bubble Sort
  • Count Sort
  • Heap Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Selection Sort

Math

Various Math algorithms:

  • Extended Euclidean
  • Fast Exponentiation
  • GCD
  • LCM

String

Various String algorithms:

  • Levenshtein Distance

Geometry

Various Geometry algorithms:

  • Tangent between circles

Development

Run:

bash
$ git clone https://github.com/manrajgrover/algorithms-js.git
$ cd algorithms-js
$ npm install

This will setup the library dependencies for you.

To run tests, run

bash
$ npm run test

To lint your code, run

bash
$ npm run lint

To generate test coverage, run

bash
$ npm run report

To build docs, run

bash
$ npm run docs

To build for browser, run

bash
$ npm run build-dev

Get in touch

Say hi on twitter

License

MIT © Manraj Singh

Issues· 105 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptalgorithmapiconsumablesjavascript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类包管理
定价开源

> 相关工具

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image