forked from azl397985856/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa2e7e4
commit 68bc753
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,7 @@ class Solution: | |
|
||
return res | ||
``` | ||
|
||
***复杂度分析*** | ||
- 时间复杂度:由于采用了排序,因此复杂度大概为 $O(NlogN)$ | ||
- 空间复杂度:$O(N)$ |