You need to sign in or sign up before continuing.×
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Why those casts to integer?
Amazing... ;-) :-D
I can not count, MAX_CHARS_PER_LINE should be 14 and not 15 characters.
What a waste of memory ;-)
I think counting with a max line of 14 characters (10 * 10 = 100\n) and this 10 times it should rather calloc 140 + 1 for the terminating \0. About this + 1 I am still not sure.
This will crash when a and/or b is 0.
No it's not good. The comment just tells what the code is already saying.
It is redundant, pointless and in a larger context could get out-of-date soon.
Way better is to say why something happens instead of what is happening.
Why memcpy instead of strcpy is used here?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Stumbled upon here, that
> 0
inwhile (len-- > 0)
is not needed, the loop will finish without (a 0 will be a false), and I like it.Thanks, but I think an auto type cast should be relevant when it can be avoided.
This comment is hidden because it contains spoiler information about the solution
Loading more items...