Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
it times out in python 3 for me
I'm just wondering why you would say it only works for 2.7? Change the xrange to range and <in John Maddon voice> boom, instant compatibility.
nice job!
It's not efficient and only works for python 2.7. To improve efficiency, I think you can replace the for loop by calculating next j mamually. Obviously j can't be greater then sqrt(s - j**2)
I think you are right...
It's not cheating if tests are poorly written and allow things that shouldn't pass the tests to pass. You should raise an issue to the kata instead ;-)
This is not even a correct code bacause it returns wrong result for large n. Does 'Clever' mean cheating the test?
I have so many to learn in python...