参考:https://blog.csdn.net/m0_74051652/article/details/141094059(线性表——双链表)
参考2:https://cloud.tencent.com/developer/article/1889031(看动画学算法之:doublyLinkedList)
/** * @private */ function DoublyLinkedList() { this.head = undefined; this.tail = undefined; this._length = 0; }
DoublyLinkedList.js
双向链表数据结构也有node。每个Node有值,以及两个指针,分别指向上一个和下一个
浙公网安备 33010602011771号