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.
Maybe it was changed in the meantime? but
Python 3.11
does not accept"- 12"
as anint
.Anyway, spaces have been specified away and tests are now correct for that spec.
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.
Loading more items...