« first day (6 days earlier)    last day (15 days later) » 

13:29
@perfectionm1ng How is this question related to DP?
 
3 hours later…
16:31
I would say that it is a graph search problem (you can easily solve it using BFS) more than a DP problem...

« first day (6 days earlier)    last day (15 days later) »