Ad
  • Default User Avatar

    Yes that helped a lot but what happens if you Move through:
    9
    3 9
    8 7
    ?
    post-Post Note:Ah with your wisdom I have gained enough knowledge to find a solution for this Kata,the only problem is that I'm too slow.Might be time for some memoization.

  • Default User Avatar

    I need some more clarification on "Number of climb rounds between adjacent locations is defined as difference of location altitudes (ascending or descending).".I'm looking at the test examples and I still don't get it.I know that I can solve it but I just don't understand what is being asked of me.

  • Default User Avatar

    Maybe you should have tried solving it before looking for it in the TextBook?People like you are always strange to me just because Google gives you the solution on the first page doesn't mean that the problem's difficulty changes...

  • Default User Avatar

    Using String[] instead of char[] to store characters in Java is very stupid.

  • Default User Avatar

    You're correct and I solved the Kata.Godspeed lad.

  • Default User Avatar

    .W...
    .W...
    .W.W.
    ...W.
    ...W.
    .W...
    .W...
    .W.W.
    ...WW
    ...W.
    ..W
    .W.
    W..
    .WWWW
    .W...
    .W.W.
    .W.W.
    ...W.
    .W...
    W....
    .....
    .....
    .....
    .W
    W.
    .
    This ain't a NxN maze BRO.Fix the Details.Something like "The maze can be in any shape or form."

  • Default User Avatar

    Codewars is meant to be a self-help training site where you can work on your coding skills.It's not the Kata creator's job to limit you.Just like there's nothing stopping you from copy-pasting the solution from Google but what's the point in doing it?The only one that's at a lose is you.

  • Default User Avatar

    fixture.c:8:5: warning: implicit declaration of function 'tester' is invalid in C99 [-Wimplicit-function-declaration]
    tester(10, alice, bob, "maze", 0, 0); // Alice goes first, Alice wins

    Aside from that Visual Studio,Online Compilers and Linux all run my code without problem.
    
  • Default User Avatar

    It's me again so after gaining some more knowledge in the art of C I found out that you cannot(depends on the compiler) manually change char pointers.The trick is either to set a new pointer via malloc or just use an array[] to copy your pointer "string":
    *pointer="This is WAR" becomes:
    array[]="This is war"

  • Default User Avatar

    The performance needed is scaled for every language.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    Nevermind...I fixed it. :D

  • Default User Avatar

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

  • Default User Avatar

    In C the Test doesn't run if there are more than one calls to the function:
    cr_assert_eq (solution(10), 23); //Returns True

    cr_assert_eq (solution(10), 23); //Returns this False
    //Doesn't run anything after.
    cr_assert_eq (solution(101),2418);

    It gives the same error on the official "ATTEMPT" too.