using System.Collections.Generic;
using System.Diagnostics;
public static int[][] RoadBuilder(int nCities, int[, ] builtRoads)
for (int r = 1; r < nCities; r++)
Console.WriteLine("Total number of Roads to be created: " + totalRoads);
List<string> ttlroads = new List<string>();
for (int i = 0; i < nCities; i++)
for (int j = i + 1; j < nCities; j++)
ttlroads.Add(i + "," + j);
int width = builtRoads.GetLength(0);
int height = builtRoads.GetLength(1);
List<string> bltroads = new List<string>(width * height);
for (int i = 0; i < width; i++)
for (int j = 0; j < height - 1; j++)
bltroads.Add(builtRoads[i, j] + "," + builtRoads[i, j + 1]);
var results = ttlroads.Except(bltroads);
int[][] ival = new int[0][];
public static void Main()
int[, ] test1 = new int[3, 2]{{0, 1}, {1, 2}, {3, 2}};
Console.WriteLine(RoadBuilder(4, test1));