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.
Here are some hints for optimizing the code:
1. start by checking for too much chaos at the start of your loop through q
2. check for how many values skipped in front of each sticker. limiting the section checked to only 2 places in front or less.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
New Year Chaos
You are viewing a single comment's thread. Return to all comments →
Here are some hints for optimizing the code: 1. start by checking for too much chaos at the start of your loop through q 2. check for how many values skipped in front of each sticker. limiting the section checked to only 2 places in front or less.