Leetcode 568. Maximum Vacation Days
Given a flights graph and a matrix of vacation days per city per week, start at city 0 and choose each week whether to stay or fly along allowed edges to maximize total vacation days over K weeks. The core challenge is a DP/state-search over (city, week) states with transitions constrained by the flight graph and time steps to accumulate the optimal sum.
Asked at:
Apple
Meta
Datadog
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late March, 2026
Apple
Senior
Late August, 2025
Meta
Senior
Vacation and PTO days
Early May, 2025
Meta
Staff
Hello Interview Premium
Your account is free and you can post anonymously if you choose.