Skip to content

Commit cd94609

Browse files
committed
Update f-exuan21.java
HashSet -> Set 수정
1 parent a069025 commit cd94609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contains-duplicate/f-exuan21.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class Solution {
55
public boolean containsDuplicate(int[] nums) {
6-
HashSet<Integer> set = new HashSet<>();
6+
Set<Integer> set = new HashSet<>();
77
for(int i : nums) {
88
if(set.contains(i)) {
99
return true;

0 commit comments

Comments
 (0)