Hi! I saw this problem on your 90 days coding challenge but I've not been able to solve it. I've tried using hashing + binsearch and suffix array + lcp + sparse table but I'm getting Time Limit Exceeded. I noticed there are no solutions online for the SPOJ version but there's a ZOJ version that gives more time and some people solved it there using hashing + binsearch. Can you please help me to solve it for the SPOJ version. Maybe there's a linear approach that I can't see? Thanks! :)
Asked by: jcbages on Jan. 13, 2020, 12:59 a.m. Last updated on Jan. 13, 2020, 1 a.m.
could you please provide full question or question link with your solution or solution link here.
pankaj_kumar last updated on Feb. 28, 2020, 6:02 p.m.