mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 19:44:45 +08:00
update 0239.滑动窗口最大值:添加复杂度分析
This commit is contained in:
@ -184,6 +184,9 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
* 时间复杂度: O(n)
|
||||||
|
* 空间复杂度: O(k)
|
||||||
|
|
||||||
|
|
||||||
再来看一下时间复杂度,使用单调队列的时间复杂度是 O(n)。
|
再来看一下时间复杂度,使用单调队列的时间复杂度是 O(n)。
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user