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.
but sir he can't do it like that
I love you man
AHH so we did not have to convert the array of strings into an array of numbers. D'oh.
omg, that's a massive hit.
Pretty clever, I really like your solution because you didn't use Math operator
And the award for the shortest solution goes to you! :)
You would be a great politician.
For this specific instance, its completely arbitrary. Doesn't make one difference.
There is a difference if you are wondering though. In the solution, he uses a pre-increment rather than a post increment like in your question. It increments the number before the statement executes. It doesn't make a difference because the only thing in that statement is '++i'. Here's an example of it:
out of the box man, nice
This is like seeing the interior of a CPU.
why is it ++i and not i++
Loading more items...