1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows
Description
**Input:** mat = [[1,3,11],[2,4,6]], k = 5
**Output:** 7
**Explanation:** Choosing one element from each row, the first k smallest sum are:
[1,2], [1,4], [3,2], [3,4], [1,6]. Where the 5th sum is 7. **Input:** mat = [[1,3,11],[2,4,6]], k = 9
**Output:** 17**Input:** mat = [[1,10,10],[1,4,5],[2,3,6]], k = 7
**Output:** 9
**Explanation:** Choosing one element from each row, the first k smallest sum are:
[1,1,2], [1,1,3], [1,4,2], [1,4,3], [1,1,6], [1,5,2], [1,5,3]. Where the 7th sum is 9. ac
Previous1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitNext1440. Evaluate Boolean Expression
Last updated