Accepeted in Java but got TLE in C++ & Python !!
Java Brute Force  Solution got accepted\n \nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {\n    int[][] mat = new int[n][n];\n  
Java Brute Force  Solution got accepted\n ```\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {\n    int[][] mat = new int[n][n];\n    for (int[] q : queries) {\n        int row1 = q[0], col1 = q[1], row2 = q[2], col2 = q[3];\n        for (int i = row1; i <= row2; i++) {\n            for (int j = col1; j <= col2; j++) {\n                mat[i][j]++;\n            }\n        }\n    }\n    return mat;\n    }\n}\n```\n\nBut same C++ Solution gets Time Limit Exceeded on TestCase 18\n ```\nclass Solution {\npublic:\n    vector<vector<int>> rangeAddQueries(int n, vector<vector<int>>& queries) {\n        vector<vector<int>> mat(n, vector<int>(n, 0)) ;\n        for (auto &q : queries) {\n            int row1 = q[0], col1 = q[1], row2 = q[2], col2 = q[3];\n            for (int i = row1; i <= row2; i++) {\n                for (int j = col1; j <= col2; j++) {\n                    mat[i][j]++;\n                }\n            }\n        }\n        return mat;\n    }\n};\n```\n\nPlease fix the issue as many participants got penalty because of this issue.
['C++', 'Java', 'Python3']