Python version should use snake_case.
For this kata, you do not need to say that there is a TypeError.
Reraised as issue
Python Needs randomized tests.
literally the xor operator
No random tests.
Python 3 should be enabled.
Nice xor op worked as it should in this one no problems ... love this site many challenges I have a new hangout
CoffeeScript translation Kumited! Please accept :D
I second that
Needs random tests.
Enter the Mind of The Beast...
This comment is hidden because it contains spoiler information about the solution
For me the description is not clear: I'd search for the shortest (minimum) substring first with an appearence highest (maximum) of the matches.
Therefore in "abcabcabc" I'd find a result to be ["ab", 3], because that is the shortest substring (minimum?)
Can anyone tell me why could I interpret this in a wrong way? Does it mean that I am not too good in Math?
Hmmm. Hard to say. Did some microbenchmark tests, and sometimes the bitwise operation is faster, and sometimes the old fashioned exponential computation is faster. And I simulated very many trials with a wide range of powers, so I doubt there is any benefit to using the bitwise operation.
Other than being fun-spritied, I wouldn't really dub this a very readable code, since not many people know the bitwise operator in Python.