CF 79C - Beaver
CF 79C - Beaver Rating: 1800 Tags: data structures, dp, greedy, hashing, strings, two pointers Solve time: 1m 27s Verified: yes Solution Problem Understanding We are asked to find the longest contiguous substring of a string s that avoids certain "boring" substrings. In other words, given a string s and a small list of forbidden patterns b1, b2, ..., bn , we must identify the longest segment of s that...