View Single Post
Old Jun 9th, 2006, 7:50 PM   #22
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 930
Rep Power: 4 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Thanks for the tips, Cerulean.

The final function I ended up writing executed almost instantly when given a 12-digit number, as opposed to the previous function, which took over a minute.

In case anyone's interested, this problem came from a USACO challege; now I have to re-write it in C++ or Java in order to submit it. (I wrote in Python to get experience with the language.) If anyone knows of a site with Python-specific challenges, I would be very interested...

Last edited by titaniumdecoy; Jun 9th, 2006 at 8:04 PM.
titaniumdecoy is offline   Reply With Quote