Maximize Earnings by Converting Days Off to Workdays

You are given an employee's initial schedule for n days as a binary string schedule, where 1 means a workday and 0 means a day off.

  • Every workday earns a fixed amount wage.
  • A workday al...

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: