We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Spoiler alert!!
To reduce execution time of your code..
Use n=n%4+4;(Helped me in passing 11 test cases)
Explaination :-
You will find that after the first 5 stages(seconds) , all the stages will get repeated except for the first stage(Hence 4).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Bomberman Game
You are viewing a single comment's thread. Return to all comments →
Spoiler alert!! To reduce execution time of your code.. Use n=n%4+4;(Helped me in passing 11 test cases) Explaination :- You will find that after the first 5 stages(seconds) , all the stages will get repeated except for the first stage(Hence 4).