|
|
back to boardCommon BoardWho can help to write the code (1102),I always get 'Time limited' Posted by qwt 25 Mar 2002 18:10 Re: Who can help to write the code (1102),I always get 'Time limited' in case you use string matching + dynamic programming. it's O(nm) , even m is only 6, the over head is too big for this 2 sec time limit. so use an automaton instead. |
|
|