Ad
  • Custom User Avatar
  • Custom User Avatar

    Would love a Swift or TypeScript version of this Kata.

  • Custom User Avatar

    I am really struggling here. Although I have a Kata of 5 and this kata is supposed to be 7, i am really having an hard time. Spent hours and nothig. I know nothin of Fractan and although i read it 100 times, still don't understand. I though i should get the value of n and the multiply for each fraction given until the result number is not an integer, but it looks like i am wrong.
    Any clue or direction so i can figure it out?
    Thanks

  • Custom User Avatar

    Hi,

    for the first sample test (3x3):

    [[1, 0, 0, 0, 0], [1, 0, 1, 0, 0], [0, 0, 0, 1, 0], [0, 1, 1, 1, 0], [0, 1, 1, 1, 0]] should equal [[0, 0, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 1, 0], [0, 1, 1, 1, 0], [0, 0, 0, 0, 0]]
    

    The descirption seems to imply that one can generate any board that would lead to the expected 3x3 board, but the tests are actually testing a 5x5 board. Which is absolutely not obvious when looking at the sample tests since the testing process isn't shown there.

    => the external layer of zeroes should be in the inputs since they actually are part of it.

    Cheers

  • Custom User Avatar

    With a syntax checker, would a JS translation be feasible? ( I think yes, and I'm up for that. Try to lure in some people. :)

  • Custom User Avatar

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