Spiral print 2D array

Not able to understand the last part of the video how things are going on. and why we don’t put that condition of (sr<er) in the while loop.

hey @pratham.sharma6113 it’s quite intuitive, try to do dry run. You will get it. If still not able to get it. Let me know, will help accordingly.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like

Doubts are clear thank you