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.
OP solved it, closing
to make sure my pattern is correct before it increments the count i make sure that the string.length() is equal to 0 by using replaceAll() method in valid characters but im wondering why it keeps error in the intiateRandTests where i got extra one count.
got it got it. thanks mate.
There are
Sample Tests
you can run your code with before clickingATTEMPT
. When you do, there are additional tests, and also random tests. So, your code needs to be correct for all of them. In the case of your error message, you returned an array of length52
, whereas that particular test required an empty array.You should try to study more basics of C++ language its more complicated than the other High Level Languages i would recommend you to use Java,Pyhton or Javascript.
This comment is hidden because it contains spoiler information about the solution
thanks!
Make sure that you're testing the same thing, the thing that failed - otherwise there's no point to it. It's very common around here to say "works locally but not here" and from what I can tell it's almost always caused by not measuring the same thing, making the comparison meaningless.
If you're unable to reproduce it locally, then you can still debug it here where you can repreduce it.
why my solution is incorrect output but when i tried in my IDE and online IDE the output is correct?
This comment is hidden because it contains spoiler information about the solution