Print anticlockwise spiral

sir i solved this question. it is also giving me correct answer. but only problem is that it is not passing 1 test case. i am not able to figure out what i am missing. please somebody help me. here is the code -

@pushkar24sharma line 25 and 31 use equal sign to

1 Like

okay sir it is working but still i am not able to understand why we are using equality in those 2 lines.
moreover when we were printing the clockwise normal spiral pattern we were not using equality sign in video. Then why here @vatsal38

@pushkar24sharma try for odd no of rows and even columns it will fail

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.