ss-linked-list
v1.1.5
Published
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php) [![npm version](https://badge.fury.io/js/ss-linked-list.svg)](https://badge.fury.io/js/ss-linked-list)
Downloads
8,790
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 --save
var LinkedList = require('ss-linked-list');
Global object
Include the pre-built script.
<script src="./dist/index.umd.min.js"></script>
Build & test
npm run build
npm test
document
npm run doc
then 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.