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.
Approved some time ago
No, it is that the reference solution is consistently wrong when
s == l[0]
andlen(l) > 1
. For example:.
Fixed.
corrected now.
question,what if we have:
it's kinda tricky, but want to know if you thought about consequences of this exercise "in the wild"
FYI @chainsaw-maniac , @brendanvos
Guess what, your JS solution ported to Python times out on the exact same test case.
@Akar-0, Is your Python solution based on your JS solution, then I'll try to translate that one and test ...
Translating the author's Ruby solution to Python gives me the exact same timeout as my own submission. This is too weird for words.
Reference solution passes in ≃ 5 seconds (apparently without special trick that would come from knowing in advance the tests design).
Can this still be solved in Python? I (should) have a very fast solution, but I'm no Python expert.
My old Python solution times out now. Maybe the current runner is slower. It's the problem with performance katas: they are closely dependent on language and test versions.
Loading more items...