I have a large arrray of strings that looks something like this: String temp[] = new String[200000].
I have another String, let\'s call it bigtext. What I ne
I'm afraid it's not efficient at all in any case!
To pick the right algorithm, you need to provide some answers:
bigText
known in advance? I guess temp
is not, from its name.Sticking to strict inclusion test, you might build a trie from your temp
array. It would prevent searching the same sub-string several times.