3733. Minimum Time to Complete All Deliveries
You are given two integer arrays of size 2:
d = [d1, d2]andr = [r1, r2].Two delivery drones are tasked with completing a specific number of deliveries. Drone
imust completedideliveries.Each delivery takes exactly one hour and only one drone can make a delivery at any given hour.
Additionally, both drones require recharging at specific intervals during which they cannot make deliveries. Drone
imust recharge everyrihours (i.e. at hours that are multiples ofri).Return an integer denoting the minimum total time (in hours) required to complete all deliveries.
1 | class Solution { |