Maximize Earnings by Converting Days Off
An employee has an initial schedule for n days, represented by a binary string schedule:
schedule[i] = '1'means the employee works on dayi.schedule[i] = '0'means the employee is off...
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:
