Efficiently finding the intersection of a variable number of sets of strings
问题 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 don\'t want any code, just ideas on what could be efficient. I have an implementation that I\'m about to start coding but want to hear some other ideas. Currently, just thinking about my solution, it looks like I should have an asymptotic run-time of Θ(n 2 ). Thanks for any help! tshred Edit: To clarify, I really just