Given two (huge) sets, what is an efficient way to find their intersection?
Anonymous
hey can you please share the answer with us? I have 2 ans: 1. sort both the sets and iterate to find intersections. (nlogn) 2. use hash. (n) Please let me know if it could be done in a better way. Thanks!
Check out your Company Bowl for anonymous work chats.