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.
Al least since 2016, description has this line:
I think he translated that to a regular expression in his post.
The other issue says:
I don't remember if it was true, but it doesn't say that now, so it's not clear which language(s) is/are supposed to be fixed.
Duplicate issue
Not a kata issue.
thanks a lot, it works now. Much appreciated.
this was not in any way against you ^^ On Codewars, specifications about what kind of input the user will receive must be unambiguous, and in most cases should not be changed after a kata has been approved, to provide a consistent experience. There are many other katas about input validation.
This was a hypothetical, real-world question. I wrote this bring to light the fact that the test cases don't catch this and is an easily missed caveat. I have come across bugs like this in my work.
Two years ago tho, yikes. Basically prehistory.
The description states:
The description states:
you are using global variables to store the state of your function; this is bad practice. In particular, you forgot to reinitialize
str
between function calls. You should movestr
to function scope.my bad regarding the tag.
Thanks, I changed the function to nul-terminate but it still does not work. Again the return value that I get in my IDE is the correct one but it's not the same in CodeWars environment...
please, use the
question
tag to ask for help, anissue
is a bug in the kata.your
strLower()
function does not nul-terminates
, this is undefined behavior and it makes your program unpredictableC: I can't pass the random tests.
I get this error message. The submitted value is not the expected one.
Example:
text = "BDkCifBUrf6j8idgqpjV"
Submitted: 2 expected: 5
I added a printf to show me the return value from my code and it is indeed 2 in the CodeWars IDE.
However it's 5 in my own IDE.
Anyone got this issue? Or maybe I don't understand something.
Hi @luckyvictor and welcome to Codewars! It seems this is your first kata on the site: on Codewars you must return your answer rather than
print
it - so looking at your currrent solution, try replacing:print(count)
withreturn count
For future reference, as you get started with the site, this page is a useful resource also: Troubleshooting guide
Good luck on your Codewars journey!
Loading more items...