I have two arrays (or arraylists, if simpler) of strings. I need to compare them, find which exist only in the first array, which exist in both, and which exist only in the second array. These arrays have different lengths and can be in different orders. If necessary, I suppose I could sort them ...
I know that I could hack this together, but I think it can have a pretty standard and efficient / βbestβ solution, and I'm most curious.
I use C # for this, but if you want to write your solution in another language, any help is appreciated.
Thanks for the help!
comparison arraylist arrays c # compare
Wes
source share