[Tutor] Need help speeding up algorithm.

Ian Witham witham.ian at gmail.com
Wed Sep 26 00:17:38 CEST 2007


On 9/26/07, Terry Carroll <carroll at tjc.com> wrote:
>
> On Wed, 26 Sep 2007, Ian Witham wrote:
>
> > My solution still took over 5 seconds on the Sphere Judge machine.
>
> How much data are they throwing at you?  For the sample data they provide
> on the website, your first "slow" solution finished on my machine almost
> instantaneously.


Approximately 100000 numbers in the range 1 <= N <= 1000000000, and they run
your solution on a Pentium III 700MHz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070926/f4220564/attachment.htm 


More information about the Tutor mailing list