There was an error while loading. Please reload this page.
1 parent 9c20ee5 commit a86f390Copy full SHA for a86f390
1 file changed
leetcode3/최원준/3978. Unique Middle Element.py
@@ -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