mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
Merge pull request #2507 from junhaoqu/fixlinkedlist19java
fix java version for linked list 19
This commit is contained in:
@ -111,7 +111,6 @@ class Solution {
|
||||
for (int i = 0; i <= n; i++) {
|
||||
fastIndex = fastIndex.next;
|
||||
}
|
||||
|
||||
while (fastIndex != null) {
|
||||
fastIndex = fastIndex.next;
|
||||
slowIndex = slowIndex.next;
|
||||
|
Reference in New Issue
Block a user