Skip to content

Commit bc4865c

Browse files
contains duplicate-line break add2
1 parent 698c2b6 commit bc4865c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
class Solution:
2-
def containsDuplicate(self, nums: List[int]) -> bool:
3-
s = set()
4-
for num in nums:
5-
if num in s:
6-
return True
7-
s.add(num)
8-
return False
9-
1+
class Solution:
2+
def containsDuplicate(self, nums: List[int]) -> bool:
3+
s = set()
4+
for num in nums:
5+
if num in s:
6+
return True
7+
s.add(num)
8+
return False

0 commit comments

Comments
 (0)