File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ int compare(void const *a, void const *b)
66 return (* (int * )a - * (int * )b );
77}
88
9- bool containsDuplicate (int * nums , int numsSize ) {\
9+ bool containsDuplicate (int * nums , int numsSize ) {
1010 int i ;
1111
1212 i = 0 ;
@@ -19,3 +19,19 @@ bool containsDuplicate(int* nums, int numsSize) {\
1919 }
2020 return (0 );
2121}
22+
23+ /*
24+ ์๊ฐ ๋ณต์ก๋
25+
26+ qsort(ํต์ํธ)๋ฅผ ํตํด O(n log n)์ ํ ๋ฒ ์ํ + while๋ฌธ์ ํ ๋ฒ ๋์์ O(n)๋งํผ์ ๋ณต์ก๋๋ฅผ ๊ฐ์ง
27+
28+ ์ต์ข
์๊ฐ ๋ณต์ก๋ : O(n log n)
29+
30+ ============================
31+
32+ ๊ณต๊ฐ ๋ณต์ก๋
33+
34+ ์ถ๊ฐ์ ์ผ๋ก ํ ๋นํ๋ ๋ฉ๋ชจ๋ฆฌ๊ฐ ์์ผ๋ฏ๋ก O(1)์ ๋ณต์ก๋๋ฅผ ๊ฐ์ง๋ค
35+
36+ ์ต์ข
๊ณต๊ฐ ๋ณต์ก๋ : O(1)
37+ */
You canโt perform that action at this time.
0 commit comments