Skip to content

Commit

Permalink
Merge pull request youngyangyang04#2350 from QZ-z/master
Browse files Browse the repository at this point in the history
Update 0019.删除链表的倒数第N个节点.md
  • Loading branch information
youngyangyang04 authored Dec 1, 2023
2 parents 52eac4c + 26df976 commit ec40459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0019.删除链表的倒数第N个节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ListNode removeNthFromEnd(ListNode head, int n){
ListNode slowIndex = dummyNode;
// 只要快慢指针相差 n 个结点即可
for (int i = 0; i <= n ; i++){
for (int i = 0; i < n ; i++){
fastIndex = fastIndex.next;
}
Expand Down

0 comments on commit ec40459

Please sign in to comment.