Skip to content

Commit 4824c7d

Browse files
committed
Update kth-largest-element-in-an-array.cpp
1 parent 2b39698 commit 4824c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/kth-largest-element-in-an-array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Time: O(n)
1+
// Time: O(n) ~ O(n^2)
22
// Space: O(1)
33

44
class Solution {
@@ -36,7 +36,7 @@ class Solution {
3636
}
3737
};
3838

39-
// Time: O(n)
39+
// Time: O(n) ~ O(n^2)
4040
// Space: O(1)
4141
class Solution2 {
4242
public:

0 commit comments

Comments
 (0)