https://leetcode.com/problems/most-frequent-even-element/



Success



```
from collections import Counter

class Solution:
    def mostFrequentEven(self, nums: List[int]) -> int:
        #2023/2/18 09:00
        counter_ = Counter(nums)

        another_dict = {}
        for one in counter_.most_common():
            if one[0] % 2 == 0:
                if one[1] not in another_dict:
                    another_dict[one[1]] = [one[0]]
                else:
                    another_dict[one[1]].append(one[0])

        for one in another_dict.items():
            return min(one[1])

        return -1
        #2023/2/18 09:31
```
