JAVA Code Solution Explained in HINDI
https://youtu.be/7jTSxIzUEEk\n\nPlease, check above video for explanation and do like and subscribe the channel.\n\n# Code\n\nclass Solution {\n    public int l
https://youtu.be/7jTSxIzUEEk\n\nPlease, check above video for explanation and do like and subscribe the channel.\n\n# Code\n```\nclass Solution {\n    public int largestSubmatrix(int[][] matrix) {\n\n      int m = matrix.length;\n      int n = matrix[0].length;\n\n      int ans = 0;\n\n      for(int r = 0; r < m; r++) {\n          for(int c = 0; c < n; c++) {\n              if (matrix[r][c] != 0 && r > 0) {\n                  matrix[r][c] += matrix[r-1][c];\n              }\n          }\n\n          int currRow[] = matrix[r].clone();\n          Arrays.sort(currRow);\n          for(int i = 0; i < n; i++) {\n              ans = Math.max(ans, currRow[i] * (n-i));\n          }\n      }  \n      return ans;\n    }\n}\n```
['Java']