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.
What do you mean by this? Can you explain how it uses more memory?
This comment is hidden because it contains spoiler information about the solution
That's a good idea tip. Thanks a lot!
tip: (i learned recently) use logarithmic function.
log10(100) = 2
add 1 in it. that is 2+1 => 3
(int)log10(num)+1 can be used to find length of number.
i think strchr return null in case if character is not found. 0 and null are not same. you can use (void *)0 insted of 0.
beautifully written..
well, code should be very clear, espically in C.
One liner is not for C, most of the time.
Shorter code doesn't mean it's always best..
Ok its clever solution(i marked you clever) but cant say best practice since a lot of memory is wasted comparing it with normal switch cases. since C is prefered for writting better and faster solution it is not much relible,
shorter code are not always the best...
This comment is hidden because it contains spoiler information about the solution
i like this one nice logic rather than using builtin functions and methods always.. great solutioin
this is not practice sir. try applying logic in fundamentals part.
Thank you. this is the best solution for me, i understood how ypur code is working. absolutely awesome.
This comment is hidden because it contains spoiler information about the solution
thats incorrect format "" inside '' really.but you can do something like " some strings .."