From 33de329be19f3a1bb1367cbc07fdb6111e7791e7 Mon Sep 17 00:00:00 2001 From: hestia-park Date: Tue, 1 Apr 2025 21:13:30 -0400 Subject: [PATCH 1/2] A solution for Contains Duplicate #217 --- contains-duplicate/hestia-park.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 contains-duplicate/hestia-park.py diff --git a/contains-duplicate/hestia-park.py b/contains-duplicate/hestia-park.py new file mode 100644 index 000000000..74fefc4f2 --- /dev/null +++ b/contains-duplicate/hestia-park.py @@ -0,0 +1,3 @@ +class Solution: + def containsDuplicate(self, nums: List[int]) -> bool: + return len(nums) != len(set(nums)) \ No newline at end of file From bcfdf6956303964d463a15776aec037c84ffec8d Mon Sep 17 00:00:00 2001 From: hestia-park Date: Tue, 8 Apr 2025 16:12:34 -0400 Subject: [PATCH 2/2] add newline A solution for Contains Duplicate #217 --- contains-duplicate/hestia-park.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contains-duplicate/hestia-park.py b/contains-duplicate/hestia-park.py index 74fefc4f2..d41e60eb0 100644 --- a/contains-duplicate/hestia-park.py +++ b/contains-duplicate/hestia-park.py @@ -1,3 +1,5 @@ class Solution: def containsDuplicate(self, nums: List[int]) -> bool: - return len(nums) != len(set(nums)) \ No newline at end of file + return len(nums) != len(set(nums)) + +