mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-09 14:06:06 +00:00
refactor: Replace 结点 with 节点 (#452)
* Replace 结点 with 节点 Update the footnotes in the figures * Update mindmap * Reduce the size of the mindmap.png
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* 链表结点结构体 */
|
||||
/* 链表节点结构体 */
|
||||
struct ListNode {
|
||||
int val; // 结点值
|
||||
struct ListNode *next; // 指向下一结点的指针(引用)
|
||||
int val; // 节点值
|
||||
struct ListNode *next; // 指向下一节点的指针(引用)
|
||||
};
|
||||
|
||||
// typedef 作用是为一种数据类型定义一个新名字
|
||||
typedef struct ListNode ListNode;
|
||||
|
||||
/* 构造函数,初始化一个新结点 */
|
||||
/* 构造函数,初始化一个新节点 */
|
||||
ListNode *newListNode(int val) {
|
||||
ListNode *node, *next;
|
||||
node = (ListNode *) malloc(sizeof(ListNode));
|
||||
|
||||
Reference in New Issue
Block a user