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
This comment is hidden because it contains spoiler information about the solution
quite a simple kata i thought, and it is, i thought i was being clever but tests made me feel stupid, Nice Kata!! thanks @GotThat
If you want to use sorted for shortness at least save 'sorted(arr)' in a variable instead to sort two times the same array.
but for some reason everyone votes as usual )
Invalid inputs are not tested in random tests.
Well, it is bad.-
Yes I agree on this.
Better bearing performance in mind
Hmm. ok, i thought i handled for that situation but let me look again. Thanks!
5 is a int, not str. The function accepts str only, that's why it expects returned value of int input to be False.
Hi, can I get help with the 27th test? Is it for the string "5" ? When I try that number i get the right output ("5" => 5).
Here is my readout:
Testing for bad inputs
Test Passed
Log
7 - A
Test Passed
Log
3 + 2 *
Test Passed
Log
/ 7 + 3
Test Passed
Log
5
STDERR:
Traceback:
in
in calculate
TypeError: argument of type 'int' is not iterable
This comment is hidden because it contains spoiler information about the solution
Nice work.
Well, although very similar they are not exactly the same. I think this one is slightly more difficult because of the '0...' numbers and other little instructions.
But anyway, even though they are similar, I wouldn't mark it as an issue, but that's only my opinion!!
Nice kata i like it!!!
Loading more items...