There was an error while loading. Please reload this page.
2 parents 8c6c4a6 + a86f390 commit 5b9b7a7Copy full SHA for 5b9b7a7
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