mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
Merge pull request #2319 from huawuque404/master
Error changing Java code
This commit is contained in:
@ -110,7 +110,7 @@ public ListNode removeNthFromEnd(ListNode head, int n){
|
||||
fastIndex = fastIndex.next;
|
||||
}
|
||||
|
||||
while (fastIndex.next != null){
|
||||
while (fastIndex != null){
|
||||
fastIndex = fastIndex.next;
|
||||
slowIndex = slowIndex.next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user