Ad
  • Custom User Avatar

    Nobody will rewtire the kata now.

  • Custom User Avatar

    There was a bug in the test cases. It's fixed now.

  • Custom User Avatar

    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.

  • Default 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?

  • Default 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

  • Default User Avatar

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

  • Custom User Avatar

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

  • Default 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!

  • Default User Avatar

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

  • Default User Avatar
  • Default 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

  • Default User Avatar
  • Default User Avatar

    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.

  • Default 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.

  • Default User Avatar

    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...