|
|
back to boardHint 4 all.... you don`t need any array! just O(1*N)... Aidin_n7@hotmail.com I don't understand a problem I don't understand a problem Why the answer to sample input 1 is "YES" ? If we take i = 2 and j = 3, then (3+0)<>(3-2+1)+3 Re: I don't understand a problem (3+0)<=(3-2+1)+3 O(n) Posted by PTD_PDP 24 Oct 2004 16:01 Yes, just 373K and it's AC. Check that it's a sequence. Re: O(n) Posted by Beybut 1 Mar 2007 15:15 Re: O(n) very nice problem !!! jus a bit of thinking reqd Re: O(n) Nice - i agree. For others only 10 strings - AC - 0.015 Re: O(n) Nice - i agree. For others only 10 strings - AC - 0.015 |
|
|