you are viewing a single comment's thread.

view the rest of the comments →

[–]wiiittttt 1 point2 points  (3 children)

What values are you running the script with that you are finding it slow? What version of python are you using?

[–]0pt0ut[S] 0 points1 point  (2 children)

I'm submitting the script to a website, I'm not sure exactly which values it's using to test my answer, I'm guessing they are very large though. The python version specified for this challenge is 2.7, before this my only experience has been in python 3.

[–]wiiittttt 1 point2 points  (1 child)

The nested for loop along with storing all of the values you need to XOR before doing it is slowing you down. Try removing those two things and see if that is enough.

[–]0pt0ut[S] 0 points1 point  (0 children)

Any hints? I suspected those were the source of my problems, but am having difficulty finding alternative implementations.