We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456074b commit 11b4de6Copy full SHA for 11b4de6
โmissing-number/KwonNayeon.pyโ
@@ -5,8 +5,11 @@
5
3. Each element nums[i] is between 0 and n inclusive
6
4. All numbers in nums are unique (no duplicates)
7
8
+ <Solution 1>
9
+
10
Time Complexity: O(nlogn)
11
- ์ ๋ ฌ์ nlogn, ์ํ์ n์ด ํ์ํ๋ฏ๋ก ์ ์ฒด์ ์ผ๋ก O(nlogn)
12
13
Space Complexity: O(1)
14
- ์ถ๊ฐ ๊ณต๊ฐ์ ์ฌ์ฉํ์ง ์๊ณ ์ ๋ ฅ ๋ฐฐ์ด๋ง ์ฌ์ฉ
15
@@ -26,3 +29,14 @@ def missingNumber(self, nums: List[int]) -> int:
26
29
27
30
return len(nums)
28
31
32
+'''
33
+<Solution 2>
34
35
+Time Complexity:
36
+-
37
38
+Space Complexity:
39
40
41
+ํ์ด ๋ฐฉ๋ฒ:
42
0 commit comments