in reply to One-liner to build a Trie
Those are made-up examples, but you get the idea: find bunches of headlines in a multi-year archive that start with the same words. Of course, the same code (with a different split regex) would create the more typical character-based trie structure.TOP STORIES FOR WEDNESDAY, JUNE 14 TOP STORIES FOR TUESDAY, JULY 27 ... STOCK INDEXES, NYSE 11:00 GMT STOCK INDEXES, NASDAQ 13:00 GMT ... BASEBALL: FINAL SCORES ... ...
|
|---|