Easy | Python Solution | Numpy
Code\n\nimport numpy as np\nclass Solution:\n    def rangeAddQueries(self, n: int, queries: List[List[int]]) -> List[List[int]]:\n        mat = [[0 for _ in ran
# Code\n```\nimport numpy as np\nclass Solution:\n    def rangeAddQueries(self, n: int, queries: List[List[int]]) -> List[List[int]]:\n        mat = [[0 for _ in range(n)] for _ in range(n)]\n        mat = np.array(mat)\n        for vals in queries:\n           x1, x2, y1, y2 = vals[0], vals[1], vals[2], vals[3]\n           mat[x1:y1+1, x2:y2+1] += 1\n        return mat\n```\nDo upvote if you like the solution :)
['Matrix', 'Python3']