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.
Nobody will rewtire the kata now.
There was a bug in the test cases. It's fixed now.
This tests is to ensure that we can get a hamiltonian path on the set of possible colors hence... for this tests you should have no duplicates for about 10000 colors I can't tests more due to codewars limitations.
C++
Seem to have done everyhting correctly. If I use randomNumber for generation I fail aBunchInARowTest because of some duplicate.
If srand(randomNumber) and rand function together then I fail regex test. Dont know what is causing the problem.For regex says expected true and actual 0.
Tried different combinations but keep failing either regex or the bunch test.
Can you please help me out?
I have a lot of problem when I have to use static functions and classes. I easily developed the logic using stack but just could not use static. I keep getting error as I made a non static member to reduce direction . Then I had to make it static to call it and then everything was a mess. Senpai could you please teach me how to approach katas with static function and where to define these functions and why do we have to use const.
REGARDS
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
C++
I am confused,what are these two functions for(with same name and different parameters). My solution works fine on online IDEs and my machine but for some reason it gives SIGSEGV error. I m converting const char* in to string for easier manipulations but when I try to print the string that stores the input nothing appears. Logic of the code seems be working fine but cant solve this issue.
Please anyone with a kind heart explain what needs to be done!
Thanks for the kata, easy when done using appropriate Data Structure. :)
Way too easy!
Could have been even more interesting one had it included random test cases that tested the code on performance. Smaller input range is allowing n^2 solutions to pass easily. Although an interesting kata for level 6. Loved solving it <3
https://en.wikipedia.org/wiki/Camel_case
Go through it once
I think you have a problem somewhere in your code since I tried a few solutions and had no problem. Moreover 211 guys passed the C++ kata.
c++ code
My code passed the example test as well as the random test. Random test are way more complex and bigger than the example tests. Although whevever I ATTEMPT to run all the tests together, the code passes the random test and fixed/example test shows-- ✘ Caught unknown exception.
It is really annoying as the code is giving me the expected output whenever I print the input and output.
Thus the same code is passing when you run example/fixed test and failing when you click on ATTEMPT.
I suppose it is C++ since you said nothing but I saw that your last language is C++. I tried a few solutions and had no problem. 423 guys passed the C++ kata. Maybe it is a CW problem. If that goes on report it as a bug.
Loading more items...