Ad
  • Custom User Avatar

    Two things:

    • The input matrix is flattened
    • You need to return an array, not int* outsz

    Fun kata, vague instructions.

  • Custom User Avatar

    nice kata!

  • Custom User Avatar

    Lack of support for C# 12 is a general problem for the whole Codewars, and not an issue specific to this kata. Closing as not a kata issue. The support for C# 12 has already been requested.

  • Custom User Avatar

    Wen .Net 8.0 / C# 12 so we can use collection expressions and inline arrays ? …

  • Default User Avatar

    I've lost my sanity

  • Custom User Avatar

    Overall, a fun challenge, though I agree with those who are saying the test for the empty list goes against the instructions, as it is not n x n. Yes, there is a note about it and the fix is pretty trivial, but trying to explain it away as a design choice is just silly. It's a bad design choice.

  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    Seems like you forgot to handle edge cases for [[]], OP solved it though, closing

  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    Find repeating patterns in the algorithm, normalize it into some code statements. You do not need to go through all N squares and check whether each of them have been visited upon every iteration.

  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    Wow, such a fun kata.

  • Default User Avatar

    Amazing kata i am proud finishing this!

  • Custom User Avatar

    Language used : C

    Could someone tell me what is that uncheated snail ? Is it an empty one ?

    It seems the very last attempt (the 15th ?) crashes (signal 11 : SIGSEGV)

    [EDIT]]finally got that last little devil...

  • Default User Avatar

    Tried

    def snail(array):
        return super(array)```to see if this is possible thank goodness it's not
    
  • Loading more items...