我的github

参考: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有值,以及两个指针,分别指向上一个和下一个

posted on 2024-11-02 17:43  XiaoNiuFeiTian  阅读(19)  评论(0)    收藏  举报