UNPKG

stl-kit

Version:

A modern JavaScript & TypeScript standard template library (STL) for data structures and algorithms. Includes high-performance implementations of Stack, Queue, Deque, Linked List, Vector, Set, Map, Tree, Heap, and Graph — inspired by C++ STL. Designed for

1 lines 274 B
'use strict';var c=Object.defineProperty;var n=(l,u)=>c(l,"name",{value:u,configurable:true});var t=class{constructor(u,i=null,p=null){this.val=u;this.prev=i;this.next=p;}static{n(this,"ListNode");}cleanup(){this.prev=null,this.next=null,this.val=null;}};exports.ListNode=t;