mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 23:56:29 +08:00
linked_list.md中增加链表结构体定义C语言代码 (#384)
This commit is contained in:
parent
88b2537097
commit
731487864f
1 changed files with 5 additions and 1 deletions
|
@ -91,7 +91,11 @@
|
|||
=== "C"
|
||||
|
||||
```c title=""
|
||||
|
||||
/* 链表结点结构体 */
|
||||
struct ListNode {
|
||||
int val; // 结点值
|
||||
ListNode *next; // 指向下一结点的指针(引用)
|
||||
};
|
||||
```
|
||||
|
||||
=== "C#"
|
||||
|
|
Loading…
Reference in a new issue