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

10 lines (8 loc) 224 B
declare class ListNode<T> { val: T; prev: ListNode<T> | null; next: ListNode<T> | null; constructor(val: T, prev?: ListNode<T> | null, next?: ListNode<T> | null); cleanup(): void; } export { ListNode };