前端算法学习js链表定义及翻转

1.定义节点类 function Node(element) { this.element = element; this.next = null; } 2.定义链表及增删查改方法 function linkList() { this.head = new Node('head'); //调用对链表增删删改的方法 this.find = find; this.insert
相关文章
相关标签/搜索