/js-algorithms

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

Primary LanguageJavaScriptMIT LicenseMIT

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