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.
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
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
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 am getting the exact output as expected and the code is also working according to description on my machine. Although both the test are showing failed.
✘ Expected: equal to aehrsty
Actual: aehrsty
✘ Expected: equal to abempstux
Actual: abempstux
this solution would work fine in case of valid input like 33,44 array. Although it give a false positive in case of say array of 8 elements which is symmetric about centre.This is because the code does not check whether the array can be represented as a n*n array.
I passed all the tests and got stuck on random test,with an error as following.Can anyone one please guide me:-
Process exited prematurally with a SIGFPE signal.
The compiler showed an error if the required function was built within the class as an inline function although worked fine when defined outside the class