This test case fails

1
10 2
9 54 33 58 88 45 57 9 95 98 14 53 46 65 71 54 52 2 77 67

hello @sauravzt7
i didnt get ur doubt.
if u r trying to submit any code then pls share it with me i will check

https://practice.geeksforgeeks.org/problems/spirally-traversing-a-matrix/0

this is the question i am trying

ok , pls share ur code as well

hello @sauravzt7
image

use >= in place of >

please explain also ,and ill suggest to change it in the video also

bro which video, i dont know about any video.

just iterate in spiral order . er>=sr indicates there is atleast one row left same is the case for column