Targetted Earnings Hacker Rank from IBM In Java

Mr.X runs a fleet of 10 cabs at a renowned cab company.
The cab company has two types of time based slots for
differential payment. Peak hours (0800-1000, 1600-1800)
payment is X and off-peak (remaining time) hours payment
is Y
Find minimum number of hours across both peak and non-
peak hours for each of them 10 cabs needed to work to
achieve the target of Rs. Z in a day.
image
image

Comments (2)