xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

数据结构 链表 All In One

数据结构 链表 All In One

链表是一种线性数据结构,其中的每个元素实际上是一个单独的对象,而所有对象都通过每个元素中的引用字段链接在一起。

  1. 单向链表
  2. 双向链表
  3. 循环链表

function LinkedListNode (val) {
  this.val = val;
  this.next = null;
}


function LinkedListNode (val) {
  this.val = val;
  this.next = null;
}

const head = new LinkedListNode(1);
head.next = new LinkedListNode(2);
head.next.next = new LinkedListNode(3);

head;
// LinkedListNode {val: 1, next: LinkedListNode}next: LinkedListNodenext: LinkedListNodenext: nullval: 3[[Prototype]]: Objectval: 2[[Prototype]]: Objectval: 1[[Prototype]]: Object

图解算法数据结构 All In One

https://www.cnblogs.com/xgqfrms/p/16366896.html

refs

https://zh.wikipedia.org/wiki/链表

https://leetcode.cn/leetbook/detail/linked-list/



©xgqfrms 2012-2025

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(35)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
历史上的今天:
2021-06-20 ES 2021 All In One
2020-06-20 leetcode 找出 int 数组的平衡点 All In One
2020-06-20 Flutter & Scaffold & multiple floatingActionButton
2019-06-20 css media query
2019-06-20 css & background & svg
2019-06-20 circle menus & touch & drag & solutions
2018-06-20 ES6 Arrow Function & this bug
点击右上角即可分享
微信分享提示