2019-08-12から1日間の記事一覧

CF 578 Div 2 E. Compress Words

https://codeforces.com/contest/1200/problem/EThe array used in KMP algorithm is useful to compute the length of common string. Someone may think this algorithm is squared time, but we don't have to treat whole string, so it works in linear…