mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update 几道常见的链表算法题.md
This commit is contained in:
parent
5e268c76dd
commit
52fb6792b9
@ -225,7 +225,7 @@ public class Solution {
|
|||||||
while (node1 != null) {
|
while (node1 != null) {
|
||||||
node1 = node1.next;
|
node1 = node1.next;
|
||||||
count++;
|
count++;
|
||||||
if (k < 1 && node1 != null) {
|
if (k < 1) {
|
||||||
node2 = node2.next;
|
node2 = node2.next;
|
||||||
}
|
}
|
||||||
k--;
|
k--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user