Maximize Earnings by Converting Days Off

Given an initial schedule for n days, a fixed daily payment pay, a consecutive-work bonus bonus, and at most k days off that may be converted into workdays:

  • schedule is a binary string of...

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: