EZ Python3 One Pass
Code\npython3 []\nclass Solution:\n    def kthLargestValue(self, matrix: List[List[int]], k: int) -> int:\n        column_to_xor_value = [0] * len(matrix[0]) \n
# Code\n```python3 []\nclass Solution:\n    def kthLargestValue(self, matrix: List[List[int]], k: int) -> int:\n        column_to_xor_value = [0] * len(matrix[0]) \n        pq = []\n\n        for row in range(len(matrix)):\n            xor_value_row = 0\n\n            for column, number in enumerate(matrix[row]):\n                xor_value_row ^= number\n                column_to_xor_value[column] ^= xor_value_row\n                xor_value = column_to_xor_value[column]\n\n                if len(pq) < k:\n                    heapq.heappush(pq, xor_value)\n                elif pq[0] < xor_value:\n                    heapq.heappushpop(pq, xor_value)\n\n        return pq[0]\n```
['Python3']