Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions contains-duplicate/hestia-park.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요! 저도 파이썬으로 참여 중인데, 집합을 사용해서 길이 비교로 중복 여부를 체크하는 알고리즘이 간단하고 명확해서 좋습니다. 새롭게 배워갑니다. ✍️
마지막 개행문자 추가만 해주시면 될 것 같습니다!

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
return len(nums) != len(set(nums))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

병합을 위해서는 줄바꿈 추가가 필요할 것 같습니다!

Loading