Skip to content

Commit

Permalink
fix : update comments for TC in #272
Browse files Browse the repository at this point in the history
  • Loading branch information
changmuk.im committed Sep 18, 2024
1 parent fbb65e7 commit 0940eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion longest-increasing-subsequence/EGON.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def lengthOfLIS(self, nums: List[int]) -> int:

"""
Runtime: 68 ms (Beats 86.42%)
Time Complexity: O(n)
Time Complexity: O(n * log n)
- nums ๋ฐฐ์—ด ์กฐํšŒ์— O(n)
- ์ตœ์•…์˜ ๊ฒฝ์šฐ num์˜ ๋ชจ๋“  ์›์†Œ์— ๋Œ€ํ•ด bisect_left ์‹คํ–‰๊ฐ€๋Šฅ, O(log n) upper bound
> O(n) * O(log n) ~= O(n * log n)
Expand Down

0 comments on commit 0940eb4

Please sign in to comment.