Minimum edge reversals to make a root
Given a directed tree with V vertices and V-1 edges, we need to choose such a root (from given nodes from where we can reach to every other node) with a minimum number of edge reversal. Examples: Input: V = 8, edges[][] = {{0, 1}, {1, 2}, {3, 2}, {3, 4}, {5, 4}, {5, 6}, {7, 6}} Output: 3 3Explanat