Skip to content

Commit 5010862

Browse files
committed
weekly
1 parent bfacac3 commit 5010862

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

my-submissions/e1150.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def isMajorityElement(self, nums: List[int], target: int) -> bool:
3+
return nums.count(target) > len(nums) // 2

0 commit comments

Comments
 (0)