Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 52fb679

Browse files
Update 几道常见的链表算法题.md
1 parent 5e268c7 commit 52fb679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/dataStructures-algorithms/几道常见的链表算法题.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public class Solution {
225225
while (node1 != null) {
226226
node1 = node1.next;
227227
count++;
228-
if (k < 1&& node1 !=null) {
228+
if (k < 1) {
229229
node2 = node2.next;
230230
}
231231
k--;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /