Ad
  • Custom User Avatar
    spiralCorner(12, 4)
    
    expected
    [ [ +0, +0 ], [ 3, +0 ], [ 3, 11 ], [ +0, 11 ], [ +0, 1 ], [ 2, 1 ], [ 2, 10 ], [ 1, 10 ], [ 1, 2 ] ]
    to deeply equal 
    [ [ +0, +0 ], [ 3, +0 ], [ 3, 11 ], [ +0, 11 ], [ +0, 1 ], [ 2, 1 ], [ 2, 10 ], [ 1, 10 ] ]
    

    The reference solution forgets to account for the tail going up:

    0110
    0101
    1011 << this
    1111
    1111
    1111
    1111
    1111
    1111
    1111
    1001
    0110
    
  • Custom User Avatar

    Random tests: it runs every random test input before every test block, even before fixed tests. It is impossible to correlate which random test corresponds to which input and user logging.

  • Custom User Avatar

    Sample tests are broken:

    ReferenceError: Test is not defined
        at Context.<anonymous> (test.js:18:5)
        at process.processImmediate (node:internal/timers:471:21)
    
  • Custom User Avatar

    You don't explain:

    • which is x and which is y coordinate in result
    • how this spiral behaves
  • Custom User Avatar

    Almost a duplicate to many existing spiral katas.

  • Custom User Avatar

    WTH?

    13 17
    Should return []

    and all random tests are expecting []

  • Custom User Avatar

    I did not get the question at all. Can someone please explain this in a simpler way ?