We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1047db4 + 56fa7c5 commit cffbc86Copy full SHA for cffbc86
1 file changed
leetcode3/최민지/3866.py
@@ -0,0 +1,10 @@
1
+class Solution:
2
+ def firstUniqueEven(self, nums: list[int]) -> int:
3
+ for i in nums:
4
+ if i % 2 == 0:
5
+ if nums.count(i) == 1:
6
+ return i
7
+ return -1
8
+
9
+# 파이썬 count는 문자열의 개수, 리스트의 개수 세는 함수
10
0 commit comments