Ad
  • Custom User Avatar

    How does it look possible and valid if the very first element was given as 4 and in the solution it becomes 1?

    Check the first line: given [4,1,3,2] expected [1,4,3,2], it indeed looks strange 🤷‍♂️

    Now I wonder how was that possible 🤔

  • Custom User Avatar

    What's wrong with it? Seems very possible and valid.

  • Custom User Avatar

    given board = [ [ 4, 1, 3, 2 ], [ 3, 0, 0, 1 ], [ 1, 0, 0, 3 ], [ 2, 0, 1, 4 ] ]

    expected = [[1, 4, 3, 2], [2, 3, 4, 1], [4, 2, 1, 3], [3, 1, 2, 4]]

    How is this possible!!