Skip to content

Commit a457dae

Browse files
authored
Update yeongu.cpp
1 parent 9401aaa commit a457dae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contains-duplicate/yeongu.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Time complexity: o(n log n) 왜냐하면, for 문이 n이고 find 연산이 log n이기 때문.
2+
// Space complexity: O(n) 왜냐하면, 다 다른경우 n
3+
14
class Solution {
25
public:
36
bool containsDuplicate(vector<int>& nums) {

0 commit comments

Comments
 (0)