И если строки ограничены (то есть строки из известного набора); Какой алгоритм наиболее эффективен для поиска самых частых строк?
Например:
Код: Выделить всё
strings = ["you were great in 2010-2020s", "you guys should have been nice", "look where your arrogance got you", "you were great in 2010-2020s", "you were great in 2010-2020s", "I used to be a contributor here", "look where your arrogance got you", "you should have stayed humble"]
Подробнее здесь: https://stackoverflow.com/questions/798 ... n-a-stream
Мобильная версия