You are given two integer arrays of length d = [d_1, d_2] and r = [r_1, r_2].
There are two delivery drones:
The first drone must complete d[0] deliveries and must recharge at every hour that is a multiple of r[0].
The second drone must complete d[1] deliveries and must recharge at every hour that is a multiple of r[1].
At any given hour
A drone cannot make a delivery during an hour it is recharging.
At most one drone can make a delivery during that hour.
Return the minimum number of hours required for both drones to complete all deliveries.
Constraints:
d.length
r.length
d[i]
r[i]
You are given two integer arrays of length d = [d_1, d_2] and r = [r_1, r_2].
There are two delivery drones:
The first drone must complete d[0] deliveries and must recharge at every hour that is a multiple of r[0].
The second drone must complete d[1] deliveries and must recharge at every hour that is a multiple of r[1].
At any given hour
A drone cannot make a delivery during an hour it is recharging.
At most one drone can make a delivery during that hour.
Return the minimum number of hours required for both drones to complete all deliveries.
Constraints:
d.length
r.length
d[i]
r[i]