Maximum Vacation Days with Limited PTO
Asked at Amazon · Coding & Leetcode-style Questions · Difficulty: Medium
Given a weekly work record with 'W' as workday and 'V' as vacation day, and a given number of PTOs (paid time off) that can be used to substitute 'W' for 'V'. Find the maximum number of consecutive vacations you can take within the constraint of PTO usage.
Loading the problem…