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.
Eventually I managed to solve all test cases with initial implementation I wrote within first 15 minutes. Several more hours were wasted on realization that getting the input takes about 97% of the runtime.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fighting Armies
You are viewing a single comment's thread. Return to all comments →
Eventually I managed to solve all test cases with initial implementation I wrote within first 15 minutes. Several more hours were wasted on realization that getting the input takes about 97% of the runtime.