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