You are viewing a single comment's thread. Return to all comments →
You are doing too much complications
Keep it simple keep 1 array for lookups and what you can't find compute and store.
Some un-necessary things that you can remove immediately
Dictionary keys to be integers and not string remove main function, it take 1 extra second remove try/catch bring in if/else
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 →
You are doing too much complications
Keep it simple
keep 1 array for lookups and what you can't find compute and store.
Some un-necessary things that you can remove immediately
Dictionary keys to be integers and not string
remove main function, it take 1 extra second
remove try/catch bring in if/else