arrow_back
返回选关
chevron_left
上一关
下一关
chevron_right
Ch.2 · Level 13
单链表按位查找
从头结点开始顺序遍历,定位并检索第 i 个位置的有效结点。
arrow_back
返回关卡库
单链表按位查找
定位第 3 个结点。初始化 p = head, j = 0,依次前移至第 3 个位置,时间复杂度 O(n)。
1
⌘ + Enter to run
play_arrow
运行代码
guest@aq-shell:~ (bash)
terminal
skip_previous
play_arrow
skip_next
0 / 0
dock_to_left
terminal
1x