This commit is contained in:
krahets
2023-06-02 02:58:56 +08:00
parent 2a85d796e6
commit ab9c107bb7
5 changed files with 216 additions and 11 deletions

View File

@@ -3008,6 +3008,7 @@ $$
// 当元素 1 在数组尾部时,达到最差时间复杂度 O(n)
if (nums[i] == 1) return i;
}
return -1;
}
```