Maximize Delivery Revenue with Two Robots

A street contains n houses in order, where delivering to house i earns values[i]. There are two Nurobots:

  • Robot 1 can carry and deliver at most c1 packages.
  • Robot 2 can carry and deliver ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: