Title |
User |
Message |
Date Posted |
Re: Time restraint |
jeffreyxiao |
Thanks for the advice, I'll try to implement them! Edit: I implemented most of your optimizations and I got it accepted! I'll keep them in mind next time. Thanks |
Aug 15, 2014 - 12:16:13 am UTC |
Re: Time restraint |
xiaowuc1 |
It looks like there are admissible Java solutions. I use BufferedReader in mine. You're probably better off switching to a faster language though. As a note if you want to try optimizing, char arrays... |
Aug 14, 2014 - 11:53:29 pm UTC |
Re: Time restraint |
jeffreyxiao |
I can't seem to pass the last batch of test cases. I'm using buffered reader and it still gives me a TLE (wall clock) |
Aug 14, 2014 - 11:37:55 pm UTC |
Re: Time restraint |
bbi5291 |
I think "TLE (wall clock)" in Java is usually a symptom of your input method being too slow. |
Aug 14, 2014 - 7:35:28 pm UTC |
Time restraint |
jeffreyxiao |
Isn't my solution O(n)? How can I make it faster? |
Aug 14, 2014 - 7:18:17 pm UTC |