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 bus is equipped with K units of Nitro (N2O). If going from station i to station j takes x seconds, then using t units of nitro can decrease the time taken to max(x-t, 0) seconds where max(a,b) denotes the greater of the two values between a & b
Can someone please explain this to me? It's pretty confusing with the example given. Please make it clear.
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 →
The bus is equipped with K units of Nitro (N2O). If going from station i to station j takes x seconds, then using t units of nitro can decrease the time taken to max(x-t, 0) seconds where max(a,b) denotes the greater of the two values between a & b
Can someone please explain this to me? It's pretty confusing with the example given. Please make it clear.