We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfacac3 commit 5010862Copy full SHA for 5010862
my-submissions/e1150.py
@@ -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