for (auto nbr_pair : l[node])
{
int nbr = nbr_pair.first;
int wt = nbr_pair.second;
dfs_helper(0, visited, count, ans); <== this line according to video node is zero .If I initialize node as as a zero then how the list is executing in the for loop
Actually I mean to say that l[0].first = of its neighbour then l[0] is once will be rounding in the loop.Then how the total loop is executing and how count[node] is returning to this line
count[node] += dfs_helper(nbr, visited, count, ans);