summaryrefslogtreecommitdiff
path: root/progs/a403.py
blob: ee1bdd7c74f1afc324be09494fe3afedddd52ddb (plain)
1
2
3
4
5
from collections import Counter
from itertools import chain
def freq_element(nums):
  result = Counter(chain.from_iterable(nums))
  return result