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.
thank you for the comment. i have naver thought about possible stack corruption in such case
such tasks are my weakness. enjoied a lot :)
why do we have 'auto' here? it is useless in C
debugging this was a hell...
checking a string length after the loop is not very good. You may receive a string with thousands of symbols. Then iterate over it in the loop. An then you will discard all the work done because length is invalid
it is better to avoid using floats whenever it is possible
Just my lucky guess. Because of test cases count and description. But I don't understand why it is works so. Can anybody explain me? :)
and no floats :)
short and simple soluion. I liked it very much
nice solution, but will fail for leading speces of for 2+ spaces in sequence
you don't need to check if it letter, while iterating over input string. This will make your code much faster and more compact :)
But I like your solution very much) This is many times better then one I write
what about free ? :)
also in C99 you are allowed to create arrays in runtime with no predefined size. You don't need malloc for arr
This comment is hidden because it contains spoiler information about the solution