|  | 
|  | 
| вернуться в форум | Time Limit Excedent test 32 wow Послано JAVATO  15 окт 2008 08:36my programO(N*N) java solution
 :(
Re: Time Limit Excedent test 32 wow I think you solution is really O(N^3), because comparing strings takes O(N) time, not O(1), and true O(N^2) is extremely unlikely to get TL.
 Edited by author 15.10.2008 20:54
Re: Time Limit Excedent test 32 wow Послано svr  15 окт 2008 21:03The problems has good DP structure:array of sentres of possible first pallindrom, each such
 center is renewed for O(1) when i:=i+1
Re: Time Limit Excedent test 32 wow Послано JAVATO  20 окт 2008 06:41is true, my solution is O(N^3):( slow
 | 
 | 
|