package hackerrank.ctci;

import java.util.Scanner;

/**
 * https://www.hackerrank.com/challenges/ctci-connected-cell-in-a-grid
 */
public class ConnectedCellInAGrid {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int grid[][] = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                grid[i][j] = in.nextInt();
            }
        }
    }
}

@@ -161,16 +161,110 @@
 AGrid %7B%0A
+    private static int connectedCell(int%5B%5D%5B%5D grid) %7B%0A        // TODO%0A        return 0;%0A    %7D%0A%0A
     publ

Update Connected Cell In A Grid