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.
Lol this one is really fun to solve, it was a tough one to crack, but I solved it in 10 seconds.
hi
not good kata
I really can not understand the problem, can someone explain it in basic English please
Amazing.
I liked this Kata
No, reversing isn't the same as sorting.
Look at the sample tests again -- look at this line:
This means "if you give
[3, 1, 5, 4]
to the functionreverse_list
, the result should be[4, 5, 1, 3]
".When you tried to sort the list, you get the result
[5, 4, 3, 1]
instead.The test then tells you
[5, 4, 3, 1] should equal [4, 5, 1, 3]
. Your answer didn't match the correct answer.Thanks for help me, My mistake was in sorting the list,When the question only want to reverse it,Stuped mistake but thanks for help me
X should equal Y
means that your function returnedX
, but it should've returnedY
.[5, 4, 3, 1]
isn't the input -- for that case,[3, 1, 5, 4]
is the input.5, 4, 3, 1] should equal [4, 5, 1, 3] should not it be 1,3,4,5 cause it started 5,4,3,1 why how can it be 4,5,1,3
You just need to reverse the list, not sort it. The first element becomes the last element, the second one becomes the second-to-last one, etc.
dan 1 thats like a grandMaster, thanks for reply to me xD, can you teach me please what wrong here
5, 4, 3, 1] should equal [4, 5, 1, 3] i'm new to Python and programming so its mostly you are right, but explain to me please
I'd rather bet there is no bug and you're misreading something. Please say which language you're using. We receive a list as an input, not an integer so whatever it is, your message is not accurate. This kata has been completed more than 13000 times since more than 7 years, and nobody complained about such a bug. Maybe this can help you: Troubleshooting Your Solution.
I'm sure they are a bug, for example 123 >> 321 but what i'm seeing in random numbers like 1597 >> 7519, what going on ? something is wrong
really !!!!
Loading more items...