For me the issue is whether we're looking at something closer to 1e7 or 1e9
operations per second, which has a pretty significant impact on what
algorithms can work to solve a problem.

On Tue, Apr 10, 2018 at 1:13 PM <ninicu.cristia...@gmail.com> wrote:

> Actually you can figure out for yourself without running the code if a
> idea will got TLE or not. It is normally if you know the complexity of your
> solution and compare it to problem restriction. For example, it is
> obviously that O(T * n^2) will got TLE in Trouble sort problem, because the
> size of array might be up to 1e5. And this means that your solution needs
> to do 1e12 operations in order to solve the entire set, in worst case. A
> normal computer can hold ~1e7 operations per second. And 1e12/1e7=1e5
> seconds...but the limit was 20.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/8bee126a-8c6d-4e3a-9e6e-d24906f54f3c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAHaiWHOyLBAk8cv6gtqiibT%2BTfXgXZFzgAZyLes8yGeh9NGa2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to