One test Case is showing wrong answer, when I’m submitting my code. Please help in identify what is the error in my code.
Here is the link to my code-
Spiral Print Anticlockwise (one test case failed)
@LPLC0059 hey keshav you code is failed to handle this case
2 6
1 2 3 4 5 6
7 8 9 10 11 12
your output is
1, 7, 8, 9, 10, 11, 12, 6, 5, 4, 3, 2, 3, 4, 5, 0, END
but output should be
1, 7, 8, 9, 10, 11, 12, 6, 5, 4, 3, 2, END