You are in a city consisting of n intersections numbered from n n and a roads where roads[i]
You want to travel from intersection n
Return the number of ways to reach intersection n
Constraints:
n
n roads.length
roads[i].length
n
There is at most one road connecting any two intersections.
You can reach any intersection from any other intersection.
You are in a city consisting of n intersections numbered from n n and a roads where roads[i]
You want to travel from intersection n
Return the number of ways to reach intersection n
Constraints:
n
n roads.length
roads[i].length
n
There is at most one road connecting any two intersections.
You can reach any intersection from any other intersection.