Available question text
Given an m×n matrix, compute for each coordinate (a,b) the XOR of all elements in the submatrix from (0,0) to (a,b) (2D prefix XORs) and return the k-th largest value among these m·n results. The challenge is to efficiently compute all prefix XORs (O(mn)) and select the k-th largest from up to 10^6 values (e.g., via a size-k min-heap or selection algorithm).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1738. Find Kth Largest XOR Coordinate Value
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source