Project Euler #155: Counting Capacitor Circuits.

  • + 1 comment

    I still don't think the currrent limit works for python solutions. I dont want to have to resort to using OEIS... I have optimised in every way. Using a set, making use of a map, counting only greater than one values to reduce the times it goes in the loop. I am out of ideas except OEIS

    • + 1 comment

      I'm trying to solve it with python3 too, got timeout beginning at 13. didn't get your last move on the optimization, mind elaborating?

      • + 1 comment

        There is a way to optimise by only counting half the elements.. since a and 1/a belong to the set.

        • + 0 comments

          Python (2/3) gets terminated due to timeout.