summaryrefslogtreecommitdiff
path: root/progs/a403.py
blob: 18c84b29153c40a9b2ad3eafd07ac13dbc267720 (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