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.
I realized you need to keep track of what's not found, after spending a long time trying to solve this. Once you find something you remove it from the not found list. If you go past 2 in not found trying to match, it's too many bribes.
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 →
I realized you need to keep track of what's not found, after spending a long time trying to solve this. Once you find something you remove it from the not found list. If you go past 2 in not found trying to match, it's too many bribes.