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.
If the input string doesn't contain any reference marks, your code just increases
i
until out of bounds.The code flow is excellent, and great placement of the different variables.
Though, there are ways to make your function shorter while not sacrificing the qualities previously mentioned.
what language, what test?
quite hard to help if you don't give any more information
Always learning.
Thank you ^^
done
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Figure out what your code is doing in the single case of "aaaaaaaaaaaa". Can you see it is very inefficient? How is it possible to do the same job much faster and quite easily? Then, try to generalize it.
The description says There might be some non-ascii characters in the string., but this actually doesn't apply to C (and knowing this should seriously help you...).
This comment is hidden because it contains spoiler information about the solution
Hello guys !
Having some problems here ! Giving time out error
If someone could help me i would appreciate it :)
Code on reply V
Ooo that makes more sense now. Thank you so nuch!
Won't that mistake again ^^
None should equal...
means your function returnsNone
(it returns nothing or an empty value). Never doreturn print...
,print
doesn't return anything, it just display stuff to the console, so doing this is just like doingreturn None
or even justreturn
. You mustreturn your_result
, that easy. And this is not a kata suggestion (=suggestion of improvement to the kata), but a question.This comment is hidden because it contains spoiler information about the solution
Did it finally ! xD
Was the
if(n == 0) p = ...
line that was wrong, but i didnt really understand well why.Can u quicly explain why please. I'm sorry for bother you, and thanks a lot for ur time fr :)
U can mark as spoiler because now i can see ( if it's not too much to ask of course :) )
Loading more items...