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 it won't pass the random test... there is a bug in your code, not with the tests
Hi I cant seem to pass the random test. I pass all the other test just having problems with the random test. what's the difference between the fixed test and the random test? how is the list generaded between the two? I have working solution i just dont know why it wont pass the random test. How can i solve this issue?
You can use
std::cout
in your code to display whatever you want. Anyway I added also to my Kata logging what message and code are tested.BTW. The
n
is not a four digit number. It's a random number between 0 andINT_MAX
.I'm trying to get my code to pass the random test. my code passes the first two test but not the final random test which i cant figure out why. I know the n is a four digit number and my program processes that number correctly. also str is processed correctly as well. but when I try to test the random values the output shows that there are two number in the sequence off by a few. How should I try to figure out how to pass the random test if i dont know what its testing for?
sorry im new. but i figured it out. i was getting the error because i didnt check it the vector was null or none changed my code and it worked. thanks for the repley.
Don't create an issue, if you are not sure, if the problem is in the kata or in your code.
As you can see, over 600 people solved it in C++. So I think the problem is in your code.
"Process exited prematurely with a SIGSEGV signal." I keep getting this error for c++. My solution passes all the test but I keep getting this error? is anyone else getting this error too?