You are viewing a single comment's thread. Return to all comments →
steps() using full loop is too slow. You can use recursion and memoization. But whith memoization there is a problem how to fit in memomory.
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #14: Longest Collatz sequence
You are viewing a single comment's thread. Return to all comments →
steps() using full loop is too slow. You can use recursion and memoization. But whith memoization there is a problem how to fit in memomory.