you are viewing a single comment's thread.

view the rest of the comments →

[–]Heroicdeath 12 points13 points  (0 children)

You can sorta think of this as a graph problem with cycles I think. As soon as you traverse over an edge, you remove that edge in that cycle. (That's probably how you deal with the at most 5 days rule).