We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb65e7 commit 0940eb4Copy full SHA for 0940eb4
longest-increasing-subsequence/EGON.py
@@ -8,7 +8,7 @@ def lengthOfLIS(self, nums: List[int]) -> int:
8
9
"""
10
Runtime: 68 ms (Beats 86.42%)
11
- Time Complexity: O(n)
+ Time Complexity: O(n * log n)
12
- nums 배열 조회에 O(n)
13
- 최악의 경우 num의 모든 원소에 대해 bisect_left 실행가능, O(log n) upper bound
14
> O(n) * O(log n) ~= O(n * log n)
0 commit comments