Minimum Time to Visit Disappearing Nodes
You are given an undirected weighted graph with `n` nodes numbered from `0` to `n - 1`. Each edge `edges[i] = [u, v, length]` joins nodes `u` and `v` and takes `length` units of time to traverse. You start at node `0` at time `0`.