378. Kth Smallest Element in a Sorted Matrix
·
Algorithm
Kth Smallest Element in a Sorted Matrix - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 단순하게... class Solution: def kthSmallest(self, matrix: List[List[int]], k: int) -> int: temp = [] for item in matrix: temp += item return sorted(temp)[k-1] 2차원 배열에서 k번째로 큰 수를 반환하는 문제다. 그냥 2차..