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.
The description does not specify that nums will always have one or more numbers.
And it's usually a good practice to check that a value is not zero before dividing something by it.
What is the purpose of the last part? There isn't a case where nums doesn't exist.
my favourite solution so far. Concise but still super readable
hmm clever:)))
Is there anything gained by the first part of the if-expression
When v isn't found at all the code doesn't start to count the appearances of v but when it is found it always does both.
I don't get how this improves the code but then there wouldn't be 4 'Best Practices' Votes.
I would really appreciate if someone could explain how this improves the code
This comment is hidden because it contains spoiler information about the solution
Thanks for the quick reply mate.
Learning a lot from your comments and solutions, as I'm sure many others are. Keep it up bro. :)
yes, but nothing significant. Here it's more about reducing the typing (no variable declaration)
This comment is hidden because it contains spoiler information about the solution
It is creating a formated string. Here is a good video on the process:
https://www.youtube.com/watch?v=nghuHvKLhJA
#11b35/3qb:0z:vV
it is the tradeoff for using a scrited language. it is almost impossible to do
anything without headers in c.
I feel you bro
I like your answer.it is easy to understand.
Better to add a last dot to the 'sentence', you will avoid an error for the empty given string ;)
Wow, learning new code everyday
Loading more items...