Skip to content

Commit b064d08

Browse files
committed
contains-duplicate solution
1 parent ce305d8 commit b064d08

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contains-duplicate/HYUNAHKO.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Solution:
2+
def containsDuplicate(self, nums: List[int]) -> bool:
3+
if len(nums) >= 1 and len(nums) <= 100000:
4+
for i in range(0, len(nums)):
5+
src = nums[i]
6+
for j in range(i+1, len(nums)):
7+
if src == nums[j]:
8+
return True
9+
return False
10+
return False

0 commit comments

Comments
 (0)