Algorithm icon indicating copy to clipboard operation
Algorithm copied to clipboard

刷题代码整理总结

Results 1 Algorithm issues
Sort by recently updated
recently updated
newest added

``` class Solution: def kthSmallest(self, matrix: List[List[int]], k: int) -> int: n = len(matrix) pq = [(matrix[i][0], i, 0) for i in range(n)] heapq.heapify(pq) for i in range(k-1): num, x,...