(String args[])
| 48 | class 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 | { |
nothing calls this directly
no test coverage detected