Ad
  • Custom User Avatar

    Yesterday, I mentioned that there was an issue with random tests, and I couldn't express the error accurately at the time. However I am now sure that it is an Overflow Error due to the large matrixes which causes different results for each primitive type. There needs to be a limitation on this!!!!

  • Custom User Avatar

    The issue was related to the returned double variable from .pow() method Thanks for your kindness

  • Custom User Avatar

    I've marked your last comment as spoiler. I think Math.pow uses doubles, and there might be some truncation errors or something.

  • Custom User Avatar

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

  • Custom User Avatar

    your solution timing out is not a kata issue

  • Custom User Avatar

    i'm pretty sure my code works since i'm passing all the other tests but for some ridiculous reason, i cant get through the random test. i'm willing to risk not getting any points so i'm going to open the solutions and test them now

  • Custom User Avatar

    What is the problem?!?!?!

  • Custom User Avatar

    Java random tests have problem!!!

  • Custom User Avatar

    Oh man! I just spent three hours staring at my code trying to figure out what the heck i did wrong. At this point I'm convinced it just doesn't work

  • Default User Avatar

    you are mistakenly training the C version, not the C++ one

  • Custom User Avatar

    In the C++ Kata, When i copy the function in my editor the part "const int matrix[size][size]" makes gcc to throw the following errors:
    "a parameter is not allowed" and "use of parameter outside function body before ] toke"
    I'm uncertain how to make this function header work? And how would you pass a matrix in a real C++ application?

  • Custom User Avatar
  • Default User Avatar

    while solving this kata, I got frustrated that I didn't even realize I forgot to multiply by the cells of first row🤦‍♂️

  • Default User Avatar

    Would you show me your code?

    Idk how to see it

  • Custom User Avatar

    I tried to solve this problems not by recursion but with gaussian. The determinant I found for the matrix of 5x5 seems to be correct, but the test is showing me a strange "expected false to be true". Since the determinant is a number I can't figure out what is wrong here.
    The kata simple said you should return the determinant not the way you should figure it out or am I wrong?

    Might try to solve it again by using recursion but still confused why my solution is not accepted.

  • Loading more items...