Skip to content

Commit 5b9b7a7

Browse files
Merge pull request #1847 from CodingTestStudy2/최원준
[최원준] Day19
2 parents 8c6c4a6 + a86f390 commit 5b9b7a7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from collections import defaultdict
2+
class Solution:
3+
def isMiddleElementUnique(self, nums: list[int]) -> bool:
4+
return Counter(nums)[nums[len(nums)//2]] == 1

0 commit comments

Comments
 (0)