Easiest Way to Sort a List of Words by Occurance

前端 未结 6 2044
南方客
南方客 2021-01-22 09:12

What is the best/easiest way to sort a large list of words (10,000-20,000) by the number of times they occur in the list, in Java. I tried a basic implementation but I get an ou

6条回答
  •  醉话见心
    2021-01-22 10:16

    THe easiest way to sort your words is alphabetically. But you can also do it by how many letters that word has that exist in another word.

提交回复
热议问题