I don’t think so we need count variable as I have checked with every possibility that the conditions in while loop is enough to avoid any run time errors.
Spiral Print Count usage
Hi Vaibhav
Can you send the link to you code?
Suggest with the test case where the condition fail in my code.