Ad
  • Custom User Avatar

    Holds true for C and NASM variants:

    1. Test cases (before "attempt") have only square matrixes. The are two arguments, that describe matrix dimensions - "m" and "n". What is row len and what is col len?
    2. In the test cases the matrix is sent to assert function as a one-dimensional array. Somewhere in that function that array is transformed to a matrix, which is sent to snail function. Too obscure.
  • Custom User Avatar

    Could you rename it into "Snail Traversal" in the description? Calling it "Snail Sort" is being sloppy with terms that have meaning and needlessly confusing. I just showed it to a friend, and they immediately fixated on this.

  • Custom User Avatar

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

  • Custom User Avatar

    [Rust] Random tests sometimes generate an empty vector vec![] which doesn't match the Kata description saying that an empty matrix is represented by vec![vec![]]

  • Custom User Avatar

    Unfortunetly, I have an exception when array is empty (c#) it seems like a test case defect.

  • Custom User Avatar

    In Go is the input supposed to be named "snaipMap" instead of "snailMap"?

  • Custom User Avatar

    C translation has confusing initial code which is NOT illustrating what the user should return

      // Return a heap allocated array, report the size in *outsz
      return (int *)(*outsz = 0);
    
  • Custom User Avatar

    Is it just me or the empty matrix solution in GO give some problem?

  • Custom User Avatar

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

  • Custom User Avatar

    "should return empty array given an empty array" - why does this mean that the array is not empty, but the first element of an input array is an empty array? lang Go
    []int{} -- empty array
    [][]int{{}} -- is NOT empty, but kata assumes it is, but the input itself is wrong: it is not 0x0 or 1x1, it is 1x0, but not NxN

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    Hi, my golang solution passes all tests except random ones. However, I checked with a size of 6x6, it works. Are there any problems with kata tests on golang?

  • Custom User Avatar

    It's a very good kata, but I find weird that a len 0 array gets represented as [ [ ] ] since that would make a 1 x 0 grid, yet the description clearly states that it's an n x n grid.

    Yes, I know it says at the bottom how it's represented. It still makes no sense.

    I had to make an additional if statement to my solution so it would pass the empty array case, if it was just [ ] (0 x 0) it would've passed without the need of an additional if, as my solution (and many others from what I've seen in other comments) works for all grids n x n, what the kata asks for.

    I'm rating it as somewhat satisfied instead of very satisfied because of that. I'll rate it very satisfied if it get's changed.

  • Custom User Avatar
    • Ruby 3.0 should be enabled (Refer this & this for more detail)
  • Loading more items...