Skip to content

Commit dd37018

Browse files
committed
Day19
1 parent 1e0bf2c commit dd37018

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)