We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I wonder how it is possible to perform all calculations in runtime using Python. I copied the code from Editorial and it runs on my machine for more than 1 minute to finish all calculations. My own solution can obtain the same results in 20 seconds, but it's still too slow for submission. If it is TopCoder or Google Code Jam it would be disastrous.
Project Euler #14: Longest Collatz sequence
You are viewing a single comment's thread. Return to all comments →
I wonder how it is possible to perform all calculations in runtime using Python. I copied the code from Editorial and it runs on my machine for more than 1 minute to finish all calculations. My own solution can obtain the same results in 20 seconds, but it's still too slow for submission. If it is TopCoder or Google Code Jam it would be disastrous.