[SPOJ] HELP NEEDED IN Z-ALGO

Правка en1, от i_love_emilia_clarke, 2015-10-31 21:16:09

Here is the link to the problem LINK. This is a simple string matching problem. I got AC verdict even with the brute force solution but i am getting TLE when using Z-algorithms in Python. Can anyone figure out why i am getting TLE for THIS solution.Thanks in advance

Теги z-algorithm, python, optimization, spoj, tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский i_love_emilia_clarke 2015-10-31 21:16:09 355 Initial revision (published)