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.
The problem with this is that you are counting partially-complete production cycles toward your slope. The instantaneous rate of production is correct, but just finding the day that corresponds to the needed production number would lead to problems. For example, at the date that you provide in your answer, two machines could have completed a half of a cycle each, but that would count as a single complete product in this solution. This is a good start, but you need to finalize the method to find what day N complete products are made.
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 →
The problem with this is that you are counting partially-complete production cycles toward your slope. The instantaneous rate of production is correct, but just finding the day that corresponds to the needed production number would lead to problems. For example, at the date that you provide in your answer, two machines could have completed a half of a cycle each, but that would count as a single complete product in this solution. This is a good start, but you need to finalize the method to find what day N complete products are made.