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.
still not approved?
groups cards by rank
have you actually tried to run the code?
it outputs: [2, 3, 4, 5, 6, 7, 8] not [2,4,6,8]
9 - 2 = 7 (not 4)
superb kata!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks. Your points are valid. However, it was my goal to make only number-based scoring. Kata requirements are met and I did not intend to add things which are unnecessary.
This comment is hidden because it contains spoiler information about the solution
Constraints are added by kata author, they are not implicit. Anything what is not blacklisted is allowed. Any accepted solution is valid. So simple.
You lost me.
That's your point. The purpose of any kata is to provide a valid solution within given constraints. It's just an exercise. Most of them don't have a single valid solution. That's my point and being called a cheater for being different is somewhat disappointing.
Why so sad? If understanding the problem space and using tools already available is cheating, then you will be suprised how much creative engineering is achieved that way.
after "n % 2" is evaluated and used in condition, n is decremented by 1 (n = n - 1).
"--" and "++" are decrement and increment operators.
"x--" means use first then decrement by 1, "++x" means increment by 1 first then use.
thanks
Function name is just a variable pointing to callable object, same as other variables are pointing to other value types. So you can treat them same.