ss-linked-list
v1.1.5
Published
[](https://opensource.org/licenses/mit-license.php) [](https://badge.fury.io/js/ss-linked-list)
Readme
ss-linked-list
Data Structure Serial - Linked List
- written in Typescript, with generics type templating
- support for iterator and iterable protocols.
- support Singly-Linked List、Doubly-Linked List; and also Circle Singly or Doubly Linked List
- fully tested
Refer:
Installation
Node.js / Browserify
npm install ss-linked-list --savevar LinkedList = require('ss-linked-list');Global object
Include the pre-built script.
<script src="./dist/index.umd.min.js"></script>
Build & test
npm run buildnpm testdocument
npm run docthen open the generated out/index.html file in your browser.
todo
Highly recommend article 面试精选:链表问题集锦 for more skils;
- detect has loop or not,Detect a loop in cyclic/circular linked list,and then count loop length
License
MIT.
