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 think the test cases may be flawed - I think the test cases assume that time is decreased for all customers on the bus when nitro is used.
However, what should be the case is that the customer's travel time is reduced by using nitro if they get off at the following stop. If a customer has to hang around at the stop waiting for customers to get onto the bus at their normal time (ignorant of the use of nitro), then the benefits of using nitro are lost.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Drive
You are viewing a single comment's thread. Return to all comments →
I think the test cases may be flawed - I think the test cases assume that time is decreased for all customers on the bus when nitro is used.
However, what should be the case is that the customer's travel time is reduced by using nitro if they get off at the following stop. If a customer has to hang around at the stop waiting for customers to get onto the bus at their normal time (ignorant of the use of nitro), then the benefits of using nitro are lost.