There was an error while loading. Please reload this page.
1 parent 1e0bf2c commit dd37018Copy full SHA for dd37018
1 file changed
leetcode3/최민지/3978_Unique Middle Element.py
@@ -0,0 +1,9 @@
1
+class Solution:
2
+ def isMiddleElementUnique(self, nums: list[int]) -> bool:
3
+ i = len(nums) // 2
4
+ a = nums[i]
5
+ nums.remove(a)
6
+
7
+ if a in nums:
8
+ return False
9
+ return True
0 commit comments