Question:
I’m storing information of thelastByFirst
variable.3
which appeared the most and also the number of appereance.I would like to list those which 3 value appeared the most. In the
lastByFirst
contains something like that. I would like to print in this way:store
should be equal withAnswer:
Here’s one that first converts the map of lists to a map of the sizes of the list, and then picks the top three such sizes:If you have better answer, please add a comment about this, thank you!