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

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

  • Default User Avatar

    how do I solve the random tests? Its the last thing I have to do

  • Custom User Avatar

    When using a faster approach that requires working with floating point numbers, the results on large matrices are either off by 1, or miss completely. How can I fix that?

  • Default User Avatar

    Fun kata! But I have a question why in C# all kata seems to uses jagged arrays instead of multidimensional? (int[][] this instead of int[,]). I am genuinely curious because it seems to me more appropriate a multidimensional array in this case and in many others that I found... am I wrong?

  • Default User Avatar

    Should probably make it clear that the matrix is being represented by row vectors (alternative would be column vector). One can assume that and infer that from the examples but it really is the kind of info that should be in the instructions.

  • Default User Avatar

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

  • Custom User Avatar

    I completed this kata but the randomHardTest is broken for C#. At first I was receiving an overflow during summation in the determinant calculation, so I refactored to work with 64 bit ints, which fixed this problem, but the result was failing the randomHardTest with unexpected results. On closer inspection, the expected values of the test are not the real determinant values, they are the same as the 64-bit results, truncated to 32-bit. An explicit cast of my final 64-bit result allowed me to pass all tests.

  • Default User Avatar

    How I am supposed to give recursive function my deducted matrix by not copying? Is there a trick to do that?

  • Custom User Avatar

    I get this error message although my code works correctly on vs:

    UndefinedBehaviorSanitizer:DEADLYSIGNAL ==1==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000008 (pc 0x000000425762 bp 0x000000000000 sp 0x7ffd80757280 T1) ==1==The signal is caused by a READ memory access. ==1==Hint: address points to the zero page. ==1==WARNING: invalid path to external symbolizer! ==1==WARNING: Failed to use and restart external symbolizer! #0 0x425761 (/workspace/test+0x425761) #1 0x42597b (/workspace/test+0x42597b) #2 0x4286a4 (/workspace/test+0x4286a4) #3 0x426cfe (/workspace/test+0x426cfe) #4 0x426843 (/workspace/test+0x426843) #5 0x42647b (/workspace/test+0x42647b) #6 0x42f045 (/workspace/test+0x42f045) #7 0x425b2d (/workspace/test+0x425b2d) #8 0x7fdd659bfbf6 (/lib/x86_64-linux-gnu/libc.so.6+0x21bf6) #9 0x404709 (/workspace/test+0x404709)

    UndefinedBehaviorSanitizer can not provide additional info. ==1==ABORTING

  • Custom User Avatar

    C# RandomTestHard is broken.
    Please check the initial array and expected result. Other tests are passed => the problem is in specific test. Math is an exact science.

  • Custom User Avatar

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

  • Loading more items...