2
def majorityElement(self, nums: List[int]) -> List[int]:4
# Boyer Moore Voting Algo (As used in ME1 ques)5
# now we can observe that there cannot be more than two elements occuring more than n//3 times in an array6
# so find two majority elements(me=majority element)9
req = n // 3 # for an element to be ME required number of times present13
me1 = None # majority element 114
me2 = None # majority element 234
# here we have found our majority elements now check if the found majority element is ME37
# check if the found majority element is ME47
if c1 > req and c2 > req: