You are viewing a single comment's thread. Return to all comments →
C# solution:
public static int connectingTowns(int n, List<int> routes) { int productOfRoads=1; for(int i=0; i<n-1;i++){ productOfRoads *= routes[i]; productOfRoads %= 1234567; } return productOfRoads; }
Connecting Towns
You are viewing a single comment's thread. Return to all comments →
C# solution: