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 78f2994 commit 66692b1Copy full SHA for 66692b1
169. Majority Element(Genius Way).py
@@ -0,0 +1,3 @@
1
+class Solution(object):
2
+ def majorityElement(self, nums):
3
+ return sorted(nums)[len(nums)//2]
0 commit comments