MCPcopy Create free account
hub / github.com/SAKET-SK/Programming-Aptitude-Interview-Prep / main

Method main

Cognizant/Que 29/Solution.java:46–58  ·  view source on GitHub ↗
(String[]args)

Source from the content-addressed store, hash-verified

44 }
45
46 public static void main (String[]args)
47 {
48 Scanner sc = new Scanner (System.in);
49 int m = sc.nextInt ();
50 int n = sc.nextInt ();
51 int arr[][] = new int[m][n];
52
53 for (int i = 0; i < m; i++)
54 for (int j = 0; j < n; j++)
55 arr[i][j] = sc.nextInt ();
56
57 System.out.println (countIsland (arr));
58 }
59}

Callers

nothing calls this directly

Calls 1

countIslandMethod · 0.95

Tested by

no test coverage detected