You are viewing a single comment's thread. Return to all comments →
To reduce execution time of your code..
Use n=n%4+4;(Helped me in passing 11 test cases)
You will find that after the first 5 stages(seconds) , all the stages will get repeated except for the first stage(Hence 4).