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 0fefe2c commit 68e6c13Copy full SHA for 68e6c13
contains-duplicate/jeongbeomko.java
@@ -1,5 +1,9 @@
1
import java.util.HashSet;
2
3
+/*
4
+* 시간복잡도: O(n)
5
+* 공간복잡도: O(n)
6
+* */
7
class Solution {
8
public boolean containsDuplicate(int[] nums) {
9
HashSet<Integer> numSet = new HashSet<>();
0 commit comments