|  | 
|  | 
| back to board | Help!!! I have Time limit exceded on 8 test!!! Help!!! I have Time limit exceded on 8 test!!!
 [code deleted]
 
 Edited by moderator 23.06.2006 17:16
You have O(n^2) algo. You should write O(n) Posted by Alexey  23 Jun 2006 12:12I wrote Knut_Morris_Pratt algo O(n+m), but WA#8. What's wrong with test#8? Posted by Alexey  23 Jun 2006 13:04Re: Help!!! I have Time limit exceded on 8 test!!! I have also time limid at #8 test!Re: Help!!! I have Time limit exceded on 8 test!!! Posted by [WA]  29 May 2007 02:46I had TLE too. But i found some hint. I use KMP too. Bug is not in algo.Re: Help!!! I have Time limit exceded on 8 test!!! Posted by Denis  9 Nov 2007 17:21Do NOT use string in your programs, especially operator '+'. It is VERY slow. Use char.
 Edited by author 09.11.2007 18:16
Re: Help!!! I have Time limit exceded on 8 test!!! Someone knows what is that test?give me some tests please...
 | 
 | 
|