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.
Clerver but completely unreadable.
I am aware, but I just added that to illustrate that at the very least nesting ternary statements is a bad idea for readability.
I think that that is the most complicated way of getting an array from a integer I have seen
You need a an array or a string to use a for loop or I'm not understanding what you are implying.
This comment is hidden because it contains spoiler information about the solution
This is quite readable, if it was a more complicated problem/solution than this approach would be undesirable.
This comment is hidden because it contains spoiler information about the solution
I had exactly this! and I thought I was being very clever! :)
Nice/Clever and readable (would have minded a
{
or}
though). I couldn't help thinking I needed to count down from something...very annoyingBecause the ball drops past the window and then bounces up and passes the window again.
The
rebounce = -1
is really clever!I like this solution, it is concise and easy to read
Just be sure to never use anything like this in production code, certainly if you expect other people to be able to maintain it.
This comment is hidden because it contains spoiler information about the solution
Clever but unreadable
Loading more items...