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.
Nice solution!
Lucky for your code, it wasn't the Knights Who Say Ni prepping the cannons!
(if everyone says 'nay', your code returns 'Fire!')
yes
same here
hahaha
hahaha
ah right... I even forgot about that fucking kata... x/ (yeah, that much...)
The problem here is that the task isn't matching the rank, especially for python and alike. What the description doesn't tell is that you can recieve as input an infinite generator. So your line
list(xs)
is trying to store an infinite sequence in memory, which ofc badly fails. So you need to think about another way.(I actually already opened an issue about that below)
This comment is hidden because it contains spoiler information about the solution
paste your current code (with spoiler flag)
Hi, can I know how you solve it?
I am having the same problem too since last week. I try to rerun it again this time but still the same.
When run sample test, all sample test pass, but when I click attempt it came out this error message.
(Didn't use for loop in my code, just use if else)
either it's a server trouble, meaning not a kata issue, or you have something in your code that is going wrong (like an inifinite loop stacking too much stuff in memory, maybe. Tho that would be weird...). Either cases, not a kata issue. ;)
I just tried in the trainer and all is going fine. Begin with a try with an empty function (just put a
pass
in the body orreturn 0
) to see if that's still happening. If so, maybe try again in some time. Otherwise, search for the problem in your code. ;)This comment is hidden because it contains spoiler information about the solution
hahaha this made my day :)
I think @Insti is right.The time perfomance implementation is very hard
It should be a seperate challenge