【文件属性】:
文件名称:data-structures:用Javascript实现的数据结构和算法
文件大小:50KB
文件格式:ZIP
更新时间:2021-05-14 10:16:57
JavaScript
CS数据结构和算法
用Javascript实现的数据结构和算法。
作者
托马斯·佩雷斯(Tomas Perez)
安装
$ npm install
运行测试
如果要运行测试,则需要全局安装mocha:
$ npm install -g mocha
然后,您可以运行测试:
$ npm test
BinaryOperator
getBit
✓ Returning bits
setBit
✓ Setting bits
clearBit
✓ Clearing bits
Insertion sort
✓ Trivial cases
✓ Non trivial cases
Merge sort
✓ Already sorted array
✓ Non trivial cases
Qu
【文件预览】:
data-structures-master
----package.json(667B)
----.github()
--------PULL_REQUEST_TEMPLATE.md(67B)
----test()
--------test.power-set.js(1KB)
--------mocha.opts(24B)
--------test.double-linked-list.js(918B)
--------test.min-heap.js(648B)
--------test.binary-search-tree.js(1KB)
--------test.node.js(1KB)
--------test.list.js(1KB)
--------tree()
--------test.hash-table.js(1KB)
--------algorithm()
----LICENSE(72B)
----.gitignore(27B)
----lib()
--------node.js(2KB)
--------power-set.js(498B)
--------list.js(2KB)
--------double-linked-list.js(1KB)
--------hash-table.js(3KB)
--------error()
--------tree()
--------min-heap.js(2KB)
--------algorithm()
----README.md(4KB)
----.tern-project(195B)