Should have creation of Tree using List of Edges

If we are given a List<Pair<Integer, Integer>> Edges in an undirected Tree in function instead of Node, how would we create the Tree?

Comments (0)