Project Euler #14: Longest Collatz sequence

  • + 3 comments

    Been banging my heads against this one for a while, and I've just completely run out of ideas for ways to increase the efficiency. I'm working in python 2. I would love if someone could take a look at this submission and perhaps nudge me towards a better solution. https://www.hackerrank.com/contests/projecteuler/challenges/euler014/submissions/code/2416055