Efficiently finding the intersection of a variable number of sets of strings

后端 未结 7 837
旧时难觅i
旧时难觅i 2020-11-27 06:14

I have a variable number of ArrayList\'s that I need to find the intersection of. A realistic cap on the number of sets of strings is probably around 35 but could be more. I

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 06:32

    One more idea - if your arrays/sets are different sizes, it makes sense to begin with the smallest.

提交回复
热议问题