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
I dont know conditions can be used both before and after for like this. Cool!
This comment is hidden because it contains spoiler information about the solution
Thanks for replying but I still dont see any help about the "0" part.
Yes I use Python and saw the numbers of completion in Python but again, 300 people passing all the test cases doesnt mean the tests case are correct.
Appreciate if you can share more direct explaination about why "0" wasnt moved in this case.
I got 2 test cases wrong, 1 of which is:
[23311822363250008, 0, 2] should equal [23113822363250008, 0, 5]
I think the test case is "12313822363250008" and I think both results are wrong because 1 of the "0" should be moved to the beginning createing a much smaller number than both above numbers (maybe 1231382236325008). Any idea?
You can try "is" instead of "==".
Very good kata for review the understanding of 0 vs 0.0 vs False and use of conditional expressions. Thank you!
This comment is hidden because it contains spoiler information about the solution
wow, I almost went a somewhat similar way...