//定义节点
function ListNode(val) {
this.val = val;
this.next = null;
}
//定义链表
//链表中有头结点和一些方法
function LinkedList() {
this.head = new ListNode('head');
this.find = find;
this.insert = insert;
this.remove
js数据结构之链表
最新推荐文章于 2021-09-18 16:18:13 发布