2 ms·
If you're actually into making this more awesome, you almost certainly want to put this together with some in-memory data structure. And that data structure sho
by aston 19y ago
If you're actually into making this more awesome, you almost certainly want to put this together with some in-memory data structure. And that data structure should probably be a suffix tree/trie. Check it out: http://en.wikipedia.org/wiki/Suffix_tree http://en.wikipedia.org/wiki/Suffix_tree. You'd need to modify that to deal with having more than one word, but that's not too bad (you just lay the trees on top of each other).
- kirubakaran 19y agoThanks a lot!