作为输入,我们有一些字符串 id。我们如何计算哪个标识符出现最频繁以及出现了多少次?
输入:
cat dog cat dog dog dog dog fly spider spider cat cat
输出:
dog 5
text-processing
text-processing ×1