MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / main

Method main

CommonMatrixElements.java:50–62  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

48class Maincodes
49{
50 public static void main(String args[])
51 {
52 // Input
53 int mat[][] =
54 {
55 {1, 2, 1, 4, 8},
56 {8, 7, 8, 5, 1},
57 {8, 7, 7, 3, 1},
58 {8, 1, 1, 7, 9},
59 };
60 // Funtion call
61 commonElements(mat,mat.length,mat[0].length);
62 }
63 // function to check if there is any duplicate elements in the firstRow
64 public static boolean seen(int arr[],int element,int end)
65 {

Callers

nothing calls this directly

Calls 1

commonElementsMethod · 0.95

Tested by

no test coverage detected