Majority Element - Python - Description Question
Challenges
• Last reply from abrar at August 5, 2020 at 12:00AM UTC
the solution mentinons sorting ).
instead we can use dictionary/hashmap
sorting in O, n = number of elements
searching for majority element O at worst case, m = number of keys of dictionary
where m < n
overall we are doing it in O, linear time
`d...