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.
Perfect
For some reason, reading this made me realize hajime! means begin!
Why? The return function exits the function immediately.
this one is just awesome!
Yes, exactly. Thanks for your reply.
Normally 'int sum' would store garbage value and should be done like this 'int sum = 0'
Don't think var name matters in such simple solutions. 'tot'|'sum' definetely better here but...
Best practice? Misleading variable name
avg
, should besum
ortot
orx
, or anything butavg
for C the task isn't very descriptive. Does not say you have to copy number to the given count array. what for? task says populate.
yep, this one is incorrect
neat one
comparing first and last char also lets one pass the test. thou that's not what it is about.
No, you're leaking memory with every function call.
I tried to find out if it is and just decided to leave it there. Is it because function exits after return? Does allocated men get free after that?
free
never gets called.Loading more items...