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.
THX!
That's crazy this copy/paste part has been there for months (I tried it first ages ago). I was suspecting it so I even tried a different browser, but it migrated as well ith my profile lol.
Sorry I forgot the spoiler tag for the imgur post.
This comment is hidden because it contains spoiler information about the solution
There something odd in this Kata (Python).
There is a solution sort of given in the test themselves
The tests fail because of a syntax error in the tests themselves.
When I test my solution on my machine - It can process a 1600 characters string in a fraction of second, but when I attempt the KAta it times out ????
THX sorry for this one - bad copy/paste :/
I have added more tests - including 0, missing in/fract and carrying
THX. Please let me know what you mean with 'random' (sorry for the dumb question - my first try here).
I woudl not think I need to test for the inputs being something else than positive numbers / integer do I ?
Didn;t realize that it was only for Python2 - I sepnd soem time working offline on py3 and got a working (on my machine / own tests) solution I wanted to try.
Got a stupid htlml error:
Traceback (most recent call last):
File "main.py", line 23, in
test.expect(resp == end, 'Got<:LF:>' + htmlize(resp) + '<:LF:>instead of<:LF:>' + htmlize(end))
File "/runner/frameworks/python/cw-2.py", line 18, in expect
if passed:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Got a tst case with a ':'.
The ':' is not provided in the lookup table :(
May be interesting in terms of code writing to address the large numbers, but mathematically it is just boringly trivial :(
Great kata!
Any progress on the Ruby front? I started coding my solution without paying attention that Ruby was not in the list :-(
"4) You haev to check that the string's length is even"
odd length string are specified as valid inputs in the instructions!
I receive a
Test Passed: Value == true
Evaluating a single word with an odd amount of chars - Expected: true, instead got: false
Which is quite confusing. I added a few test cases with single words with odd number of characters..they all pass all the time.
The error message is definitively unclear!