详解Linked list的实现方式及其应用
链表链表的定义链表是一种物理存储单元上非连续、非顺序的存储结构,数据元素的逻辑顺序是通过链表中的指针链接次序实现的.链表由一系列结点(链表中每一个元素称为结点)组成,结点可以在运行时动态生成.每个结点包括两个部分: 一个是存储数据元素的数据域,另一个是存储下一个结点地址的指针域.
链表的使用场景
数据量较小.
不需要预先知道数据规模.
适应于频繁的插入操作.
链表的实现方式单向链表
首先定...
Continue reading...