第 1 步:cur 从 head 出发
第 2 步:cur 换成 next:第 2 节
第 3 步:cur 换成 next:第 3 节
第 4 步:cur 换成 next:第 4 节
第 5 步:再走一步变 nullptr:停
要走完一整条链,靠的是【0】。
全部评论