You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Construct a graph G(V, E) such that V = {1, 2, ..., n} and E = {(u, v, w) | the minimum distance snake v must be put to the immediate right of snake u (i.e. s_u - s_v) must be at least w}.
3
+
* Now we are just looking for a variation of the shortest hamiltonian path (where we also need to count the number of positions the last snake moves, i.e. the final head position of the last snake).
0 commit comments