Maximum Time Required to Transfer Data

Asked at Rippling · Coding Questions · Difficulty: Medium

A server network is represented as a tree of `g_nodes` servers indexed from `1` to `g_nodes` and `g_nodes - 1` edges where the `i` th edges connect the servers `g_from[i]` and `g_to[i]`. The transfer time between any two connected servers is `1` unit.

Loading the problem…