用JavaScript来描述数据结构,学习《Algorithms (4th)》的记录
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test/structure/linked
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
LICENSE
README.md
package.json

README.md

js-algorithms

用JavaScript来描述数据结构,学习《Algorithms》(4th)的记录

Technology

  • CommonJS模块化;
  • ES2015描述algorithms
  • ESLint校验代码风格;
  • MochaChain单元测试,Istanbul覆盖率。

Command

install

$ cd /js-algorithms
$ npm install
$ npm install -g eslint mocha istanbul

lint

$ npm run lint

unit test

$ npm run unit

coverage

$ npm run test

数据结构

基于链表

  • Node
  • LinkedList
  • Stack
  • Queue
  • Bag

基于数组

deprecated