Merge pull request #2507 from junhaoqu/fixlinkedlist19java

fix java version for linked list 19
This commit is contained in:
程序员Carl 2024-05-03 09:37:24 +08:00 committed by GitHub
commit ec21c9de73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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;