@chengaoyuan/list

双向链表

Usage no npm install needed!

<script type="module">
  import chengaoyuanList from 'https://cdn.skypack.dev/@chengaoyuan/list';
</script>

README

list

npm version install size NPM Downloads Build Status Coverage Status

Installation

$ npm install @chengaoyuan/list

Usage

import List from "@chengaoyuan/list";
import * as assert from "assert";

const l = new List<number>(1, 2, 3, 5, 4, 1, 2, 4);
assert.deepEqual(l.sort().toArray(), [1, 1, 2, 2, 3, 4, 4, 5]);

Testing

$ npm test