Prefix Xor python
\nclass Solution:\n    def kthLargestValue(self, matrix: List[List[int]], k: int) -> int:\n        for i in range(0, len(matrix)):\n            for j in range(1
```\nclass Solution:\n    def kthLargestValue(self, matrix: List[List[int]], k: int) -> int:\n        for i in range(0, len(matrix)):\n            for j in range(1, len(matrix[0])):\n                matrix[i][j] ^= matrix[i][j-1]\n        for i in range(1, len(matrix)):\n            for j in range(0, len(matrix[0])):\n                matrix[i][j] ^= matrix[i-1][j]\n        l = []\n        for i in matrix:\n            for j in i:\n                l.append(j)\n        l.sort(reverse=True)\n        return l[k-1]\n        \n```
[]