Maximum Earnings with Workday Changes
You are given an initial work schedule for n days. The binary string schedule represents the schedule:
schedule[i] = '1': the employee is scheduled to work on dayi;schedule[i] = '0': ...
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:
