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.
Agreed! Like most code where you try to make it short beyond reasonable, but that was the challenge here.
well, lets obfuscate it more
I think that's only a concern if you are writing code for a real-time application and are at the same time very resource-restrained. Otherwise, this shouldn't matter when running code on modern computers.
Sorry for late reply,
If N=13, rev_result is [13, 6, 3, 1], which is reverse of the expected result, so I have to use that return statement.