Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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 🤔
What's wrong with it? Seems very possible and valid.
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!!