Groups
Category
Manacher's algorithm finds the length of the longest palindrome centered at every position in a string in linear time O(n).
Slope Trick is a technique to maintain a convex piecewise-linear function implicitly using two heaps and a running constant.