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.
It works on PyPy3, not Python 3. I didn't read the end of his sentence and went straight for Python 3 to only find that the code failed 4 test cases with runtime error. When I read the end of his sentence, I realised I used PyPy3 and it 100% pass all test cases.
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 →
It works on PyPy3, not Python 3. I didn't read the end of his sentence and went straight for Python 3 to only find that the code failed 4 test cases with runtime error. When I read the end of his sentence, I realised I used PyPy3 and it 100% pass all test cases.