Python No Brainer


#1

from math import floor
class Solution:
# @param A : tuple of integers
# @return an integer
def majorityElement(self, A):
A=list(A)
t=floor(len(A)/2)
A.sort()
return (A[t])