Merge pull request #2319 from huawuque404/master
Error changing Java code
This commit is contained in:
commit
6973f61882
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue