Codeforces Beta Round #94 Problem B
Is there a better suffix array solution for this problem ? This is my solution, but I think is very inefficient Is there a better solution with suffix array? there is no editorial for this round I hope someone can help me! Thanks!