You are given four integer arrays: landStartTime, landDuration, waterStartTime, and waterDuration.
There are
The landStartTime[i] and takes landDuration[i] time to complete.
The waterStartTime[j] and takes waterDuration[j] time to complete.
You must complete exactly one land ride and exactly one water ride in any order.
A ride cannot begin before its opening time. If you arrive at a ride after it opens, you may start it immediately.
Return the earliest possible time by which you can finish both rides.
Constraints:
landStartTime.length landDuration.length
waterStartTime.length waterDuration.length
landStartTime[i], landDuration[i], waterStartTime[j], waterDuration[j]
You are given four integer arrays: landStartTime, landDuration, waterStartTime, and waterDuration.
There are
The landStartTime[i] and takes landDuration[i] time to complete.
The waterStartTime[j] and takes waterDuration[j] time to complete.
You must complete exactly one land ride and exactly one water ride in any order.
A ride cannot begin before its opening time. If you arrive at a ride after it opens, you may start it immediately.
Return the earliest possible time by which you can finish both rides.
Constraints:
landStartTime.length landDuration.length
waterStartTime.length waterDuration.length
landStartTime[i], landDuration[i], waterStartTime[j], waterDuration[j]