1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update 几道常见的链表算法题.md

This commit is contained in:
SnailClimb 2019-06-01 18:39:44 +08:00 committed by GitHub
parent 5e268c76dd
commit 52fb6792b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ public class Solution {
while (node1 != null) {
node1 = node1.next;
count++;
if (k < 1 && node1 != null) {
if (k < 1) {
node2 = node2.next;
}
k--;