Maximize Earnings by Converting Days Off to Workdays
You are given a work schedule for the next n days as a binary string schedule:
schedule[i] = '1'means the employee works on dayi.schedule[i] = '0'means the employee is off on day `i...
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:
