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.
reversed(arr)
actuallyreturn
s an iterator,list(reversed(arr))
would create a list copy. Anyway, I thinkarr.reverse()
is the fastest way to reverse alist
https://stackoverflow.com/a/40294928/6260170Micromind got it.
arr.reverse
does an in-place reverse whilereversed(arr)
creates a copy that it returns without modifying the original.This comment is hidden because it contains spoiler information about the solution
I was talking about Python version. :)
Python test case has been fixed.
Invalid test cases for python.
Haskell translation kumited.
Which version? I just tested the JS version and it works fine.
Problem in predefined test cases:
test.assert_euqals(func(args), expected_result)
but got test.assert_equals(func(args) == expected_result)
I have removed them, but I forgotted to mark this suggestion as resolved, so....:-)
You can find all my katas by searching for curious_db97 on kata page OR by opening my profile and seeing my authored katas....:-)
I'd like to complet this series of katas, but I could not find the number 5. I tried to type the URL directly but got a 404 error. Anyone know where the #5 kata is? Thx.
I agree. The kata itself does not tell, but the random tests do.