Https://hack.codingblocks.com/submission/1322665

https://hack.codingblocks.com/submission/1322665
Can anyone Tell me why one test is Getting failed;
Also how To deal with long constraints

Please send proper links to problem and your code.
This link will work only for you as you are logged in from your ID.

Save your code on online ide, and then share its link here.
Also share the link of the question, so that we can help you out.

https://hack.codingblocks.com/contests/c/512/440
Spiral Print 2D array
Its not passing All Test Cases
One more thing I am not able to provide Custom Input From My course page. Some problems are getting Failed on All Test Cases while On Hackers Block They have successfully Passed

https://ide.codingblocks.com/s/41090

My Solution Of Problem Spiral Print

Hey, your logic is completely right.
But you need to check
strrow<=endrow && strcol<=endcol
this condition in each of the for loops as well alongwith while as it is possible that the condition may be violated after going in while loop
Then the code will try to access wrong index in that case.