Swift
Code\n\nclass Solution {\n\n    func kthLargestValue(_ matrix: [[Int]], _ k: Int) -> Int {\n        let m = matrix[0].count\n        let n = matrix.count \n    
# Code\n```\nclass Solution {\n\n    func kthLargestValue(_ matrix: [[Int]], _ k: Int) -> Int {\n        let m = matrix[0].count\n        let n = matrix.count \n        var above = [Int](repeating: 0, count: m)\n        var computed = [Int]()\n        \n        for j in 0..<n {\n            var xoring = 0\n\n            for i in 0..<m {\n                xoring = matrix[j][i] ^ xoring\n                above[i] = above[i] ^ xoring\n                computed.append(above[i])\n            }\n        }\n        \n        return computed.sorted().reversed()[k-1]\n    }\n\n}\n```
['Swift']