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.
eliminationg try/except along with keeping dict keys ints and removing the main function seemed to get the program running at the required speed. Unfortunately for the last few tests I would get runtime errors which I assume was a result the inefficient data storage of a dictionary. Converted the system to a list and it passes fine. So thanks for your assistance.
Cookie support is required to access HackerRank
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 →
eliminationg try/except along with keeping dict keys ints and removing the main function seemed to get the program running at the required speed. Unfortunately for the last few tests I would get runtime errors which I assume was a result the inefficient data storage of a dictionary. Converted the system to a list and it passes fine. So thanks for your assistance.