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.
This comment is hidden because it contains spoiler information about the solution
Hi! I have written a code (will append it in a comment to this post) and below is what I get when I attempt to pass it. Can anyone explain why the two examples do not work? I can not figure it out since I do not see the actual input, only the results... Thank you!
Time: 574 ms Passed: 114 Failed: 2 Exit Code: 1
Test Results:
...
What if there is no delimiter?
['abc', 'def', 'ghi\tjklmno\t\t\t\tprrrr'] should equal ['abc', 'def', 'ghi', 'jklmno', 'prrrr']
['abc', 'def', 'ghi\tjklmno\t\t\t\tprrrr'] should equal ['abc', 'def', 'ghi', 'jklmno', 'prrrr']
...
Good job!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Nice - but I think that if you passed a bool or list (etc.) as the variable num, it would actually not work - or am I wrong? Where do you check if the num variable actually is an int before processing it?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In description is:
"Input: (...) The numbers in the array can be any integer positive or negative."
And then in tests there is for example [0,8]. Zero (0) is neither positive nor negative so the description is wrong.
Testing for [42, 9, -4, 3, 1, 9, 8, 0, 5, 17, 0, -16, -1, 20]
Failed attempt: 0 should equal 3
42 + 9 - 4 = 47... (index 3) ... 1 + 9 + 8 + 0 + 5 + 17 + 0 - 16 - 1 + 20 = 43