You are planning your vacation across
You are given a flights of size flights[i][j] = 1 indicates that a direct flight exists from city i to city j, and flights[i][j] = 0 indicates no direct flight exists. You are also given a days of size days[i][j] represents the maximum number of vacation days you can spend in city i during week j.
At the beginning of week
Return the maximum number of vacation days you can collect across all
Constraints:
n == flights.length
n == flights[i].length
n == days.length
k == days[i].length
flights[i][j] is either
days[i][j]
You are planning your vacation across
You are given a flights of size flights[i][j] = 1 indicates that a direct flight exists from city i to city j, and flights[i][j] = 0 indicates no direct flight exists. You are also given a days of size days[i][j] represents the maximum number of vacation days you can spend in city i during week j.
At the beginning of week
Return the maximum number of vacation days you can collect across all
Constraints:
n == flights.length
n == flights[i].length
n == days.length
k == days[i].length
flights[i][j] is either
days[i][j]