diff --git a/CommonMatrixElements.java b/CommonMatrixElements.java deleted file mode 100644 index d3899bc..0000000 --- a/CommonMatrixElements.java +++ /dev/null @@ -1,113 +0,0 @@ -import java.util.*; -class CommonMatrixElements -{ - public static void main(String args[]) - { - // Input - int mat[][] = - { - {1, 2, 1, 4, 8}, - {8, 7, 8, 5, 1}, - {8, 7, 7, 3, 1}, - {8, 1, 2, 7, 9}, - }; - // Funtion call - commonElements(mat,mat.length,mat[0].length); - } - public static void commonElements(int Mat[][], int r, int c) - { - // Map - HashMap map = new HashMap<>(); - - for(int i=0;i