You are given an array of integers time, where time[i] represents the duration required for the
Each bus operates independently and can undertake multiple consecutive trips, meaning a new trip starts immediately upon the completion of the previous one.
You are also given an integer totalTrips, which represents the minimum total number of trips that all buses combined must complete.
Return the minimum time required for all buses to complete at least totalTrips trips in total.
Constraints:
time.length
time[i], totalTrips
You are given an array of integers time, where time[i] represents the duration required for the
Each bus operates independently and can undertake multiple consecutive trips, meaning a new trip starts immediately upon the completion of the previous one.
You are also given an integer totalTrips, which represents the minimum total number of trips that all buses combined must complete.
Return the minimum time required for all buses to complete at least totalTrips trips in total.
Constraints:
time.length
time[i], totalTrips