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.
Your upper bound is too high. it should be machines.front()*goal instead.
The longest possible production times are the ones that produce all the items on a single machine. Of those, the shortest is the one that produces all items using the fastest machine.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Time Required
You are viewing a single comment's thread. Return to all comments →
Your upper bound is too high. it should be
machines.front()*goal
instead.The longest possible production times are the ones that produce all the items on a single machine. Of those, the shortest is the one that produces all items using the fastest machine.