Trying to get lowest integers

前端 未结 3 492
广开言路
广开言路 2021-01-29 11:53

So I have 4 list, I want to find out which list.size(); is the lowest. I can find the lowest but some turn out to be the same, this is what I have.

                      


        
3条回答
  •  渐次进展
    2021-01-29 12:45

    First time you need to determine the list sizes and put them in the map. After that you can group the map by the value and set results to another map. For this map you can use a count. Now, this number you should use as a parameter to random.

提交回复
热议问题