Arrays-Spiral Print

Can you suggest what could be second test case.

Hi Abhinav

Please share the link to your code. I cannot tell the test cases as such because they are shuffled.

Ma’am this is my code one case keeps failing always.

Hi Abhinav

Your code doesn’t work for the case
3 4
1 2 3 4
1 2 3 4
1 2 3 4

Here the output should be 1, 2, 3, 4, 4, 4, 3, 2, 1, 1, 2, 3, END

Hi @ranaabhinav50
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.

1 Like