mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-07 15:45:40 +08:00
Update 0239.滑动窗口最大值.md
Change `O(n * log(n))` to `O(n log(n))`
This commit is contained in:
@ -340,7 +340,7 @@ class Solution:
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### 新解法:用"堆排序"实现
|
#### 新解法:用"堆排序"实现
|
||||||
* 时间复杂度:`O(n * log(n))`, 比`单调队列`解法要慢。
|
* 时间复杂度:`O(n log(n))`, 比`单调队列`解法要慢。
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import heapq
|
import heapq
|
||||||
|
Reference in New Issue
Block a user