TypeScript实现的数据结构,算法,数学库
立刻开始
运行在96%+的平台
压缩后小于30kB
为研习而生
(opens new window) (opens new window)
(opens new window)
import { LinkedList, HashMap } from "tdscore" //TypeScript let hashMap = new HashMap<string,number>(); hashMap.mapPut("a",1); console.log(hashMap.mapGet("a")); // 1 let list = new LinkedList<number>() list.listAdd(0) console.log(list.listGet(0)) // 0
Try TDSCore on RunKit (opens new window)