Skip to content

Commit

Permalink
34.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huisuu committed Aug 22, 2024
1 parent fd6d000 commit 0906994
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions HSKIM/31to40/34.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def solution(nums):
answer = 0
size = len(nums) // 2
pokemon = set(nums)

answer = min(size, len(pokemon))

return answer

nums = [3,1,2,3]
print(solution(nums))

0 comments on commit 0906994

Please sign in to comment.