arrow_back
返回选关
chevron_left
上一关
下一关
chevron_right
Ch.2 · Level 12
单链表求表长
通过单向遍历扫描所有有效数据结点,累计计数计算链表的逻辑长度。
arrow_back
返回关卡库
单链表求表长
扫描指针 p 依次向后移动直至 NULL,计数器 count 随着每次前移自增。
1
⌘ + Enter to run
play_arrow
运行代码
guest@aq-shell:~ (bash)
terminal
skip_previous
play_arrow
skip_next
0 / 0
dock_to_left
terminal
1x