Python one line easiest soluton


#1

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