Ad
  • Custom User Avatar

    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?

  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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!

  • Custom User Avatar

    Thanks for the kata, easy when done using appropriate Data Structure. :)

  • Custom User Avatar
  • Custom User Avatar

    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

  • Custom User Avatar
  • Custom User Avatar

    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.

  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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