C# || Solution with LINQ
Code\n\npublic class Solution\n{\n    public int LargestSubmatrix(int[][] matrix)\n    {\n        for (var i = 1; i < matrix.Length; i++)\n            for (var 
# Code\n```\npublic class Solution\n{\n    public int LargestSubmatrix(int[][] matrix)\n    {\n        for (var i = 1; i < matrix.Length; i++)\n            for (var j = 0; j < matrix[0].Length; j++)\n                if (matrix[i][j] == 1)\n                    matrix[i][j] = matrix[i - 1][j] + 1;\n\n        return matrix.Max(row =>\n        {\n            Array.Sort(row);\n\n            return Enumerable.Range(1, row.Length).Max(j => j * row[^j]);\n        });\n    }\n}\n\n```
['C#']