Skip to content

Commit 4867bff

Browse files
committed
refactor: type change from List to list
1 parent fe8e98e commit 4867bff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

โ€Žcontains-duplicate/kangdaia.pyโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Solution:
2-
def containsDuplicate(self, nums: List[int]) -> bool:
2+
def containsDuplicate(self, nums: list[int]) -> bool:
33
"""
44
๋ฆฌ์ŠคํŠธ์— ์ˆซ์ž๊ฐ€ ๋‘๋ฒˆ ์ด์ƒ ๋“ฑ์žฅํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์œผ๋ฉด True,
55
๋ชจ๋“  ์ˆซ์ž๊ฐ€ ํ•œ ๋ฒˆ์”ฉ๋งŒ ๋“ฑ์žฅํ•˜๋ฉด (unique) False๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ํ•จ์ˆ˜

0 commit comments

Comments
ย (0)