Given an array of strings representing days of the week, determine the length of the longest subsequence that does not contain any holidays.
Explanation: The longest subsequence without consecutive holidays (considering the problem description's holidays) is indeed ['Mon', 'Tue'], ['Tue', 'Thu'] or other similar non-holiday days, which has a length of 2.
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak